Skip to content

Commit 2596179

Browse files
committed
TOX: Add spellcheck environment
1 parent adcc9ba commit 2596179

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,7 @@ python_version = "3.11"
129129
exclude = [
130130
"/tests",
131131
]
132+
133+
[tool.codespell]
134+
skip = "*/data/*,./nibabel-data"
135+
ignore-words-list = "ans,te,ue,ist,nin,nd,ccompiler,ser"

tox.ini

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,15 @@ commands =
150150
blue nibabel
151151
isort nibabel
152152

153+
[testenv:spellcheck]
154+
description = Check spelling
155+
labels = check
156+
deps =
157+
codespell[toml]
158+
skip_install = true
159+
commands =
160+
codespell . {posargs}
161+
153162
[testenv:typecheck]
154163
description = Check type consistency
155164
labels = check

0 commit comments

Comments
 (0)