From 7029c0a364f0ff371a7ddd7a6e3a2e2467b39755 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sat, 12 Jul 2025 02:00:05 +0200 Subject: [PATCH] try typos --- .github/scripts/typos.toml | 10 ++++++++++ .github/workflows/checksrc.yml | 10 +++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .github/scripts/typos.toml diff --git a/.github/scripts/typos.toml b/.github/scripts/typos.toml new file mode 100644 index 0000000000..1af10d94f2 --- /dev/null +++ b/.github/scripts/typos.toml @@ -0,0 +1,10 @@ +# Copyright (C) Daniel Stenberg, , 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)", +] diff --git a/.github/workflows/checksrc.yml b/.github/workflows/checksrc.yml index 612999e711..462d6810bc 100644 --- a/.github/workflows/checksrc.yml +++ b/.github/workflows/checksrc.yml @@ -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