typos: move exclusiont to config, after finding the --force-exclude option

This commit is contained in:
Viktor Szakats 2025-07-12 10:49:49 +02:00
parent 0eec37c17c
commit 2bf9c4f247
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
2 changed files with 13 additions and 6 deletions

View file

@ -7,9 +7,8 @@ set -eu
cd "$(dirname "${0}")"/../..
git ls-files \
| grep -v -E '(codespell-ignore\.txt|spellcheck\.words|/wcurl|/THANKS)' \
| typos \
--isolated \
--config '.github/scripts/typos.toml' \
--file-list -
git ls-files | typos \
--isolated \
--force-exclude \
--config '.github/scripts/typos.toml' \
--file-list -

View file

@ -10,3 +10,11 @@ extend-ignore-identifiers-re = [
"(HEADE|numer|optin|parms|stati|ttests)",
"(Januar|passin|Passiv|perfec|PUNICODE|TEMPLAT|varius)",
]
[files]
extend-exclude = [
".github/scripts/codespell-ignore.txt",
".github/scripts/spellcheck.words",
"docs/THANKS",
"scripts/wcurl",
]