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

Add main workflow#19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
thepetk merged 14 commits intomainfromft/add_main_workflow
Apr 4, 2024
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Update check_spelling
  • Loading branch information
@thepetk
thepetk committedMar 31, 2024
commita64bb7ffacdc0c30aea7179097f5b1975e336fb6
11 changes: 6 additions & 5 deletionsscripts/check_spelling.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -34,17 +34,18 @@ def check_spell(po_files=None):
)

# Write merged dictionary file
with tempfile.NamedTemporaryFile(suffix="_merged_dict.txt") as output_filename:
with open(output_filename, "w") as f:
for e in entries:
f.write(f"{e}\n")
with tempfile.NamedTemporaryFile(suffix="_merged_dict.txt") as named_tmp_file:
for e in entries:
named_tmp_file.write(f"{e}\n".encode())
named_tmp_file.flush()
named_tmp_file.seek(0)

# Run pospell either against all files or the file given on the command line
if not po_files:
po_files = Path(".").glob("*/*.po")

detected_errors = pospell.spell_check(
po_files, personal_dict=output_filename, language="el_EL"
po_files, personal_dict=named_tmp_file.name, language="el_GR"
)
return detected_errors

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp