Skip to content

Commit 2ed8890

Browse files
committed
fix: pre-commit issues
1 parent 2bcff2d commit 2ed8890

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/translation_status.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Update translation guide status
33
on:
44
workflow_dispatch:
55
schedule:
6-
- cron: '0 3 1 * *'
6+
- cron: "0 3 1 * *"
77

88
jobs:
99
update-dep:
@@ -27,17 +27,17 @@ jobs:
2727
python scripts/translation_stats.py
2828
2929
- name: Create Pull Request
30-
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
30+
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
3131
with:
3232
token: ${{ secrets.GITHUB_TOKEN }}
33-
commit-message: 'chore(translation): update translation guide status'
34-
title: 'chore(translation): update translation guide status'
33+
commit-message: "chore(translation): update translation guide status"
34+
title: "chore(translation): update translation guide status"
3535
body: |
3636
This PR updates the translation guide status in the _static/translation_stats.json file.
3737
3838
_Auto-generated by [create-pull-request][1]_
3939
4040
[1]: https://github.com/peter-evans/create-pull-request
4141
branch: chore/update-translation-guide-status
42-
add-paths: '_static/translation_stats.json'
42+
add-paths: "_static/translation_stats.json"
4343
delete-branch: true

scripts/translation_stats.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ def main():
101101
with open(STATIC_DIR / "translation_stats.json", "w") as f:
102102
import json
103103
json.dump(results, f, indent=2)
104+
# Add an end-of-file newline
105+
f.write("\n")
104106

105107
if __name__ == "__main__":
106108
main()

0 commit comments

Comments
 (0)