Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit10a680c

Browse files
authored
Link to CONTRIBUTING.md from README & minor fixes to spell check script (#12)
1 parentdee7d32 commit10a680c

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

‎CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Οδηγός συνεισφοράς στο πρότζεκτ Python-Doc-Gr της κοινότητας PyGreece
1+
#Οδηγός συνεισφοράς στο πρότζεκτ Python-Docs-Gr της κοινότητας PyGreece
22

33
Eυχαριστούμε πολύ για το ενδιαφέρον σας να συμμετέχετε στη μετάφραση των επίσημων εγγράφων της Python στα Ελληνικά!
44

‎scripts/check_spelling.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,18 @@ def check_spell(po_files=None):
3434
)
3535

3636
# Write merged dictionary file
37-
output_filename=tempfile.mktemp(suffix="_merged_dict.txt")
38-
withopen(output_filename,"w")asf:
39-
foreinentries:
40-
f.write(f"{e}\n")
41-
42-
# Run pospell either against all files or the file given on the command line
43-
ifnotpo_files:
44-
po_files=Path(".").glob("*/*.po")
45-
46-
detected_errors=pospell.spell_check(
47-
po_files,personal_dict=output_filename,language="el_EL"
48-
)
37+
withtempfile.NamedTemporaryFile(suffix="_merged_dict.txt")asoutput_filename:
38+
withopen(output_filename,"w")asf:
39+
foreinentries:
40+
f.write(f"{e}\n")
41+
42+
# Run pospell either against all files or the file given on the command line
43+
ifnotpo_files:
44+
po_files=Path(".").glob("*/*.po")
45+
46+
detected_errors=pospell.spell_check(
47+
po_files,personal_dict=output_filename,language="el_EL"
48+
)
4949
returndetected_errors
5050

5151

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp