Skip to content

Commit 1c9b846

Browse files
committed
chore(tox): Use lock runners for more tests
1 parent cb26dfb commit 1c9b846

File tree

1 file changed

+16
-27
lines changed

1 file changed

+16
-27
lines changed

tox.ini

Lines changed: 16 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ commands =
109109
--durations=20 --durations-min=1.0 \
110110
--pyargs nibabel {posargs:-n auto}
111111

112-
[testenv:py3{9,10,11,12,13,13t,14,14t}-full-{x,arm}64]
112+
[testenv:py3{9,10,11,12,13,13t,14,14t}-{full,none}-{x,arm}64]
113113
runner = uv-venv-lock-runner
114114

115115
[testenv:install]
@@ -131,32 +131,26 @@ commands =
131131
[testenv:doctest]
132132
description = Run doctests in documentation site
133133
labels = docs
134+
runner = uv-venv-lock-runner
134135
allowlist_externals = make
135136
extras =
136137
doc
137138
test
138139
commands =
139140
make -C doc doctest
140141

141-
[testenv:style]
142+
[testenv:style{,-fix}]
142143
description = Check our style guide
143144
labels = check
144-
deps =
145-
ruff>=0.3.0
146-
skip_install = true
147-
commands =
148-
ruff check --diff nibabel
149-
ruff format --diff nibabel
150-
151-
[testenv:style-fix]
152-
description = Auto-apply style guide to the extent possible
153-
labels = pre-release
154-
deps =
155-
ruff
145+
runner = uv-venv-lock-runner
146+
dependency_groups =
147+
style
156148
skip_install = true
157149
commands =
158-
ruff check --fix nibabel
159-
ruff format nibabel
150+
!fix: ruff check --diff nibabel
151+
!fix: ruff format --diff nibabel
152+
fix: ruff check --fix nibabel
153+
fix: ruff format nibabel
160154

161155
[testenv:spellcheck]
162156
description = Check spelling
@@ -170,17 +164,12 @@ commands =
170164
[testenv:typecheck]
171165
description = Check type consistency
172166
labels = check
173-
deps =
174-
mypy
175-
pytest
176-
types-setuptools
177-
types-Pillow
178-
pydicom
179-
numpy
180-
backports.zstd
181-
importlib_resources
182-
typing_extensions
183-
skip_install = true
167+
runner = uv-venv-lock-runner
168+
dependency_groups =
169+
typecheck
170+
extras =
171+
all
172+
test
184173
commands =
185174
mypy nibabel
186175

0 commit comments

Comments
 (0)