Skip to content

Commit 7ca4add

Browse files
Move codespell options around
Starting with codespell 2.2.2, options can be specified in `pyrpoject.toml` in addition to `setup.cfg`: https://github.com/codespell-project/codespell#using-a-config-file Specifying options in a config file instead of command line options in `.pre-commit-config.yaml` ensures codespell uses the same options when run as pre-commit hook or from the command line in the repository root directory.
1 parent 4e633ad commit 7ca4add

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ repos:
1818
rev: v2.2.2
1919
hooks:
2020
- id: codespell
21-
args: ["-L", "ba,ihs,kake,nd,noe,nwo,te", "-S", "fixture"]
2221
- repo: https://github.com/pre-commit/pre-commit-hooks
2322
rev: v4.4.0
2423
hooks:

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,8 @@ filterwarnings = [
9191
"ignore:PY_SSIZE_T_CLEAN will be required.*:DeprecationWarning",
9292
"ignore:The loop argument is deprecated since Python 3.8.*:DeprecationWarning",
9393
]
94+
95+
96+
[tool.codespell]
97+
ignore-words-list = "ba,ihs,kake,nd,noe,nwo,te"
98+
skip = 'fixture,.git'

0 commit comments

Comments
 (0)