From 2bf9c4f247d5c0fce153e0541326e902c0823841 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sat, 12 Jul 2025 10:49:49 +0200 Subject: [PATCH] typos: move exclusiont to config, after finding the --force-exclude option --- .github/scripts/typos.sh | 11 +++++------ .github/scripts/typos.toml | 8 ++++++++ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/scripts/typos.sh b/.github/scripts/typos.sh index 7dbadf0634..76735c1d9f 100755 --- a/.github/scripts/typos.sh +++ b/.github/scripts/typos.sh @@ -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 - diff --git a/.github/scripts/typos.toml b/.github/scripts/typos.toml index bd5d7f3241..e19434764e 100644 --- a/.github/scripts/typos.toml +++ b/.github/scripts/typos.toml @@ -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", +]