Skip to content

Commit 9607107

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 daad2fa commit 9607107

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.3.0
2423
hooks:

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,8 @@ filterwarnings = [
7878
"ignore:PY_SSIZE_T_CLEAN will be required.*:DeprecationWarning",
7979
"ignore:The loop argument is deprecated since Python 3.8.*:DeprecationWarning",
8080
]
81+
82+
83+
[tool.codespell]
84+
ignore-words-list = "ba,ihs,kake,nd,noe,nwo,te"
85+
skip = 'fixture,.git'

0 commit comments

Comments
 (0)