Skip to content

Commit e603ec7

Browse files
committed
Fix tox compat envs inheriting dev dependency group
Clear dependency_groups in all compat testenvs (numpy, jax, torch, beartype, optree) to prevent them from inheriting the full dev group from [testenv]. This was causing torch to be installed in non-torch envs, leading to spurious test failures in CI.
1 parent 705a6c3 commit e603ec7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tox.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ commands =
3030
[testenv:numpy{22,23,24}]
3131
runner = uv-venv-runner
3232
description = tests with numpy {envname}
33+
dependency_groups =
3334
deps =
3435
pytest
3536
beartype>=0.22.9
@@ -46,6 +47,7 @@ commands =
4647
[testenv:jax{05,06,07,08,09}]
4748
runner = uv-venv-runner
4849
description = tests with jax {envname}
50+
dependency_groups =
4951
deps =
5052
pytest
5153
numpy>=2.2.0
@@ -65,6 +67,7 @@ commands =
6567
[testenv:torch{26,27,28,29,210}]
6668
runner = uv-venv-runner
6769
description = tests with torch {envname}
70+
dependency_groups =
6871
deps =
6972
pytest
7073
numpy>=2.2.0
@@ -84,6 +87,7 @@ commands =
8487
[testenv:bt{020,021,022}{,-jax,-torch}]
8588
runner = uv-venv-runner
8689
description = tests with beartype {envname}
90+
dependency_groups =
8791
deps =
8892
pytest
8993
numpy>=2.2.0
@@ -102,6 +106,7 @@ commands =
102106
[testenv:optree{014,015,016,017,018,019}]
103107
runner = uv-venv-runner
104108
description = tests with optree {envname}
109+
dependency_groups =
105110
deps =
106111
pytest
107112
numpy>=2.2.0

0 commit comments

Comments
 (0)