From f515669ce3e3938d16a0bdbe788135744e43525e Mon Sep 17 00:00:00 2001 From: John Bampton Date: Sat, 3 May 2025 04:21:54 +1000 Subject: [PATCH] Add codespell config file `.codespellrc` Add `.codespellrc` to the GitHub labeler Can now run codespell from the command line standalone and it will use our standard config file. Running codespell with pre-commit will also use this config. Useful when regenerating the ignored words file on the command line. https://github.com/codespell-project/codespell?tab=readme-ov-file#using-a-config-file https://github.com/codespell-project/codespell?tab=readme-ov-file#pre-commit-hook --- .codespellrc | 3 +++ .github/labeler.yml | 1 + .pre-commit-config.yaml | 1 - 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .codespellrc diff --git a/.codespellrc b/.codespellrc new file mode 100644 index 000000000..2f725806c --- /dev/null +++ b/.codespellrc @@ -0,0 +1,3 @@ +[codespell] +ignore-words = .github/linters/codespell.txt +skip = ./build,./doc/api,./doc/capi diff --git a/.github/labeler.yml b/.github/labeler.yml index 844d2909f..cdd8fcf55 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -19,6 +19,7 @@ build: - lib/**/* - minirake - tasks/**/* + - .codespellrc - .dockerignore - .pre-commit-config.yaml - .prettierignore diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b04cc5c97..2b819bf3b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -90,7 +90,6 @@ repos: - id: codespell name: run codespell description: check spelling with codespell - args: [--ignore-words=.github/linters/codespell.txt] - repo: https://github.com/jumanjihouse/pre-commit-hooks rev: 3.0.0 hooks: