add spelling.yml to spot spelling mistakes

See https://github.com/crate-ci/typos/blob/master/docs/github-action.md
for details
This commit is contained in:
Cédric Deltheil 2024-02-07 16:25:29 +00:00 committed by Cédric Deltheil
parent 396d166564
commit d7aadf99de
2 changed files with 20 additions and 0 deletions

16
.github/workflows/spelling.yml vendored Normal file
View file

@ -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: .

View file

@ -138,3 +138,7 @@ exclude_also = [
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
[tool.typos.default]
extend-words = { adaptee = "adaptee" }
extend-ignore-identifiers-re = ["NDArray*"]