diff --git a/.github/workflows/spelling.yml b/.github/workflows/spelling.yml new file mode 100644 index 0000000..a37a3ef --- /dev/null +++ b/.github/workflows/spelling.yml @@ -0,0 +1,16 @@ +name: Spell checker + +on: [push, pull_request] + +jobs: + typos: + name: "Spell check" + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Find typos + uses: crate-ci/typos@master + with: + files: . diff --git a/pyproject.toml b/pyproject.toml index 88093c2..90cc5e8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -138,3 +138,7 @@ exclude_also = [ "class .*\\bProtocol\\):", "@(abc\\.)?abstractmethod", ] + +[tool.typos.default] +extend-words = { adaptee = "adaptee" } +extend-ignore-identifiers-re = ["NDArray*"]