Skip to content

Commit

Permalink
Merge pull request #5847 from cclauss/codespell-in-pre-commit
Browse files Browse the repository at this point in the history
Add codespell to pre-commit and setup.cfg
  • Loading branch information
cdrini authored Nov 11, 2021
2 parents ba8c6d9 + fb88f1f commit 69a8938
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ repos:
# the results into docker.
entry: bash -c 'git diff master -U0 | docker-compose run --rm home ./scripts/flake8-diff.sh'
language: system
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
hooks:
- id: codespell # See setup.cfg for args
7 changes: 6 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Global options:
# https://github.com/codespell-project/codespell
[codespell]
count =
ignore-words-list = ba,beng,curren,datas,furst,nd,nin,ot,ser,spects,te,tha,ue,upto
skip = ./.*,*/ocm00400866,*/read_toc.py,*.it,*.js,*.json,*.mrc,*.page,*.pg_dump,*.po,*.txt,*.xml,*.yml


[mypy]
ignore_missing_imports = True
Expand Down

0 comments on commit 69a8938

Please sign in to comment.