From dbcaa51b499fe3934f186c46fed837d5d749b340 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Mon, 11 Nov 2024 18:41:17 -0500 Subject: [PATCH 1/4] Add github action to codespell master on push and PRs --- .github/workflows/codespell.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/codespell.yml diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 0000000..b026c85 --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,25 @@ +# Codespell configuration is within .codespellrc +--- +name: Codespell + +on: + push: + branches: [master] + pull_request: + branches: [master] + +permissions: + contents: read + +jobs: + codespell: + name: Check for spelling errors + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Annotate locations with typos + uses: codespell-project/codespell-problem-matcher@v1 + - name: Codespell + uses: codespell-project/actions-codespell@v2 From d0d553c2233b8ff8ab5bdb463ae51f840c992e66 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Mon, 11 Nov 2024 18:41:17 -0500 Subject: [PATCH 2/4] Add rudimentary codespell config --- .codespellrc | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .codespellrc diff --git a/.codespellrc b/.codespellrc new file mode 100644 index 0000000..1cd4cac --- /dev/null +++ b/.codespellrc @@ -0,0 +1,6 @@ +[codespell] +# Ref: https://github.com/codespell-project/codespell#using-a-config-file +skip = .git*,.codespellrc +check-hidden = true +# ignore-regex = +# ignore-words-list = From 9d7bedcfe6dfec277ed624d9f32afaa199aac422 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Mon, 11 Nov 2024 18:42:24 -0500 Subject: [PATCH 3/4] Tune up codespell --- .codespellrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.codespellrc b/.codespellrc index 1cd4cac..b62a756 100644 --- a/.codespellrc +++ b/.codespellrc @@ -2,5 +2,5 @@ # Ref: https://github.com/codespell-project/codespell#using-a-config-file skip = .git*,.codespellrc check-hidden = true -# ignore-regex = +ignore-regex = \b(TE|catchE|Ser|BU|bu)\b # ignore-words-list = From dda45cae5e30c5510a60ac1a9cf95c81c1e3b1e4 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Fri, 12 Dec 2025 11:03:54 +0100 Subject: [PATCH 4/4] Add re-used and re-use to skips of codespell since just minor --- .codespellrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.codespellrc b/.codespellrc index b62a756..a7559c0 100644 --- a/.codespellrc +++ b/.codespellrc @@ -3,4 +3,4 @@ skip = .git*,.codespellrc check-hidden = true ignore-regex = \b(TE|catchE|Ser|BU|bu)\b -# ignore-words-list = +ignore-words-list = re-used,re-use