Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 273f053

Browse files
cclaussHwurzburg
authored andcommitted
pre-commit: Discover typos with codespell
1 parent d00fd3b commit 273f053

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
# pre-commit run --all-files: run all the hooks against all the files. This is a useful invocation if you are using pre-commit in CI.
66

77
repos:
8+
- repo: https://github.com/codespell-project/codespell
9+
rev: v2.4.1
10+
hooks:
11+
- id: codespell # See pyproject.toml for args
12+
additional_dependencies:
13+
- tomli
14+
815
- repo: https://github.com/pycqa/flake8
916
rev: 7.3.0
1017
hooks:

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[tool.codespell]
2+
check-filenames = true
3+
ignore-words-list = "bu,collets,diamon,dout,empy,extint,fram,inh,minite,ned,parm,produkt,retuned,ser,sitl,te,theses,thi,tje,ue,xwindows"
4+
skip = "LICENSE,*.ai,*.pdf,*.svg"

0 commit comments

Comments
 (0)