We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5d41d6 commit 4c30f11Copy full SHA for 4c30f11
scripts/check_spell.py
@@ -11,11 +11,18 @@
11
12
13
def check_spell(po_files=None):
14
- # fix multiprocessing error loop on MacOS
15
- if sys.platform == "darwin":
16
- import multiprocessing
17
- multiprocessing.set_start_method("fork")
+ """
+ Check spell in the given list of po_files and log the spell errors details.
18
+ If not po_files given, check spell in all files.
+
19
+ args:
20
+ po_files: list of po_files paths.
21
22
+ returns:
23
+ - int: spell errors count.
24
25
26
# Read custom dictionaries
27
entries = set()
28
for filename in Path("dictionaries").glob("*.txt"):
0 commit comments