Skip to content

Commit dc5a20f

Browse files
Use large aspell dictionaries (#2947)
1 parent e13ce23 commit dc5a20f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

codespell_lib/tests/test_dictionary.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@
1818
for lang in supported_languages:
1919
_wordlist = op.join(_test_data_dir, f"{lang}-additionnal.wordlist")
2020
if op.isfile(_wordlist):
21-
spellers[lang] = aspell.Speller(("lang", lang), ("wordlists", _wordlist))
21+
spellers[lang] = aspell.Speller(
22+
("lang", lang), ("size", "80"), ("wordlists", _wordlist)
23+
)
2224
else:
23-
spellers[lang] = aspell.Speller("lang", lang)
25+
spellers[lang] = aspell.Speller(("lang", lang), ("size", "80"))
2426
except ImportError as exp:
2527
if os.getenv("REQUIRE_ASPELL", "false").lower() == "true":
2628
raise RuntimeError(

0 commit comments

Comments
 (0)