From 6955b770aa249c8d803b8dc2d9534454f51544d3 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Mon, 17 Aug 2026 14:40:42 -0400 Subject: [PATCH 1/3] Add GitHub Actions workflow for codespell on master --- .github/workflows/codespell.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..03d4277 --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,23 @@ +# Codespell configuration is within pyproject.toml +--- +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@v6 + - name: Codespell + uses: codespell-project/actions-codespell@8f01853be192eb0f849a5c7d721450e7a467c579 # v2.2 From c6297f444fccff083a6052faa5ab0d20e2c3ffa4 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Mon, 17 Aug 2026 14:40:42 -0400 Subject: [PATCH 2/3] Add rudimentary codespell config --- pyproject.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index de03ce0..1d3ab1c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -63,3 +63,10 @@ required-imports = ["from __future__ import annotations"] [tool.ruff.lint.pydocstyle] convention = "pep257" + +[tool.codespell] +# Ref: https://github.com/codespell-project/codespell#using-a-config-file +skip = '.git,.gitignore,.gitattributes' +check-hidden = true +# ignore-regex = '' +# ignore-words-list = '' From b5e2a074caf285e3e6412489c8e235dbb38c87b5 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Mon, 17 Aug 2026 14:40:43 -0400 Subject: [PATCH 3/3] [DATALAD RUNCMD] chore: run codespell throughout fixing few left typos automagically === Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^ --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 1d3ab1c..1fa9ce7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,7 +40,7 @@ ignore = [ "TRY003", # Avoid specifying long messages outside the exception class # Excessive - "RET503", # implict return + "RET503", # implicit return "RET506", # elif after raise "PLR2004", # magic value used in comparison ]