Shut codespell up

This commit is contained in:
James Brunton
2026-06-15 14:20:25 +01:00
parent 04d68c650a
commit c55beacead
+12 -3
View File
@@ -200,12 +200,12 @@ _ISE_STEMS = [
"characteri", "characteri",
"stabili", "stabili",
"generali", "generali",
"specifi? ".strip(), "specifi? ".strip(), # codespell:ignore specifi
"sterili", "sterili",
"neutrali", "neutrali",
"saniti", "saniti",
"tokeni", "tokeni",
"serie? ".strip(), "serie? ".strip(), # codespell:ignore serie
"alphabeti", "alphabeti",
"synthesi", "synthesi",
"memori", "memori",
@@ -213,7 +213,16 @@ _ISE_STEMS = [
"colouri", "colouri",
] ]
_ISE_STEMS = [s for s in _ISE_STEMS if s and not s.endswith("?")] _ISE_STEMS = [s for s in _ISE_STEMS if s and not s.endswith("?")]
_ISE_SUFFIXES = ["se", "ses", "sed", "sing", "ser", "sers", "sation", "sations"] _ISE_SUFFIXES = [
"se",
"ses",
"sed",
"sing",
"ser", # codespell:ignore ser
"sers",
"sation",
"sations",
]
for stem in _ISE_STEMS: for stem in _ISE_STEMS:
for suf in _ISE_SUFFIXES: for suf in _ISE_SUFFIXES:
add(stem + suf, stem + suf.replace("s", "z", 1)) add(stem + suf, stem + suf.replace("s", "z", 1))