move codespell to a script

This commit is contained in:
Viktor Szakats 2025-07-12 09:22:04 +02:00
parent 70e4cdd6e5
commit 7f4e2ea9f9
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
2 changed files with 23 additions and 10 deletions

22
.github/scripts/codespell.sh vendored Executable file
View file

@ -0,0 +1,22 @@
#!/bin/sh
# Copyright (C) Viktor Szakats
#
# SPDX-License-Identifier: curl
set -eu
cd "$(dirname "${0}")"/../..
codespell --version
# shellcheck disable=SC2046
codespell \
--skip '*/spellcheck.words' \
--skip '*/typos.toml' \
--skip '*/THANKS' \
--skip '*/mk-ca-bundle.pl' \
--skip '*/wcurl' \
--skip '*/tool_hugehelp.c' \
--skip 'packages/*' \
--skip '*/test*' \
--ignore-words '.github/scripts/codespell-ignore.txt' \
$(git ls-files)