try typos

This commit is contained in:
Viktor Szakats 2025-07-12 02:00:05 +02:00
parent fa7694aec7
commit 7029c0a364
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
2 changed files with 19 additions and 1 deletions

10
.github/scripts/typos.toml vendored Normal file
View file

@ -0,0 +1,10 @@
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
#
# SPDX-License-Identifier: curl
[default]
extend-ignore-identifiers-re = [
"(Fo|fo|FU|ba|BA|pn|OT|ND|PN|HELO|helo|UE|inex|parms|clen|couter|unexpect|admi|optin|ttests|ein|ths)",
"(dout|ser|Jod|Iy|ben|URE|Typ|typ|wrk|bck|PASE|htpt|CNA|ECT|anc|parm|Nam|stati|Ned|EDE|edn|nin|ue|alue)",
"(Januar|perfec|varius|PUNICODE|passin|CLEA|Passiv|HEADE|TEMPLAT|MEK|PARM|numer|nto|noo|kno)",
]

View file

@ -66,8 +66,9 @@ jobs:
python3-typing-extensions python3-libcst python3-impacket \
python3-websockets python3-pytest python3-filelock python3-pytest-xdist
python3 -m pip install --break-system-packages cmakelang==0.6.13 pytype==2024.10.11 ruff==0.11.9 codespell==2.4.1
cargo install typos-cli
- name: 'spellcheck'
- name: 'codespell'
run: |
codespell --version
codespell \
@ -78,6 +79,13 @@ jobs:
--skip '*/test*,*/THANKS,*/spellcheck.words,packages/*' \
$(git ls-files)
- name: 'typos'
run: |
typos --version
git ls-files | \
grep -v -E '(codespell-ignore\.txt|spellcheck\.words|/wcurl|CIPHERS-TLS12\.md|/THANKS)' | \
typos --file-list - --config .github/scripts/typos.toml
- name: 'cmakelint'
run: scripts/cmakelint.sh