From d7aadf99de7be0f05ad653761cc167d8768144c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Deltheil?= Date: Wed, 7 Feb 2024 16:25:29 +0000 Subject: [PATCH] add spelling.yml to spot spelling mistakes See https://github.com/crate-ci/typos/blob/master/docs/github-action.md for details --- .github/workflows/spelling.yml | 16 ++++++++++++++++ pyproject.toml | 4 ++++ 2 files changed, 20 insertions(+) create mode 100644 .github/workflows/spelling.yml 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*"]