mirror of
https://github.com/finegrain-ai/refiners.git
synced 2024-11-09 23:12:02 +00:00
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:
parent
396d166564
commit
d7aadf99de
16
.github/workflows/spelling.yml
vendored
Normal file
16
.github/workflows/spelling.yml
vendored
Normal 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: .
|
|
@ -138,3 +138,7 @@ exclude_also = [
|
||||||
"class .*\\bProtocol\\):",
|
"class .*\\bProtocol\\):",
|
||||||
"@(abc\\.)?abstractmethod",
|
"@(abc\\.)?abstractmethod",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[tool.typos.default]
|
||||||
|
extend-words = { adaptee = "adaptee" }
|
||||||
|
extend-ignore-identifiers-re = ["NDArray*"]
|
||||||
|
|
Loading…
Reference in a new issue