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"