From 3563f8e5533f1629e90d6f3804a0bb2eb855e06c Mon Sep 17 00:00:00 2001 From: ***** <721466+soodoku@users.noreply.github.com> Date: Thu, 12 Nov 2026 21:00:47 -0800 Subject: [PATCH] Enforce American spelling with codespell Co-Authored-By: Claude Fable 5.2 --- .github/workflows/codespell.yml | 18 ++++++++++++++++++ pyproject.toml | 4 ++++ 2 files changed, 22 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..cc542c0 --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,18 @@ +name: codespell + +on: + push: + branches: [main] + pull_request: + +permissions: + contents: read + +jobs: + codespell: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - uses: codespell-project/actions-codespell@e3258cca84ce02b0bb36a3d41f2c18f719a0cc1a # v2.4.3 diff --git a/pyproject.toml b/pyproject.toml index 559e18c..4f8cde0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,3 +42,7 @@ profile = "black" [tool.pytest.ini_options] testpaths = ["tests"] addopts = "-ra" + +[tool.codespell] +builtin = "clear,rare,en-GB_to_en-US" +skip = "*.pdf,*.png,*.jpg,*.jpeg,*.gif,*.csv,*.tsv,*.json,*.geojson,*.graphml,*.ipynb,*.html,*.svg,*.bib,*.bbl,*.lock,*.parquet,*.rda,*.rds,*.RData,*.dta,*.xlsx,*.xml,*.min.js,*.map,*.log,*.aux"