@@ -3,40 +3,44 @@ min_version = 4.0
33env_list = py3{10,11,12,13}
44
55
6- [testenv]
6+ [testenv:tests ]
77description = Run all tests
8- extras = dev
9- groups = dev # Used instead of extras by tox-pdm
8+ dependency_groups = dev
109commands =
11- pytest tests/ {posargs}
10+ python -m pytest {posargs:tests/ }
1211
1312
1413[testenv:test-unit]
1514description = Run unit tests
15+ base = tests
1616commands =
1717 python -m pytest tests/unit {posargs}
1818
1919
2020[testenv:test-integration]
2121description = Run integration tests
22+ base = tests
2223commands =
2324 python -m pytest tests/integration {posargs}
2425
2526
2627[testenv:test-e2e]
2728description = Run end-to-end tests
29+ base = tests
2830commands =
2931 python -m pytest tests/e2e {posargs}
3032
3133
3234[testenv:quality]
3335description = Run all quality checks
36+ base = tests
3437commands =
3538 ruff check
3639 python -m mdformat --check README.md DEVELOPING.md CONTRIBUTING.md CODE_OF_CONDUCT.md docs/ src/ tests/
3740
3841[testenv:style]
3942description = Run style checks and fixes
43+ base = tests
4044commands =
4145 ruff format
4246 ruff check --fix
@@ -45,12 +49,14 @@ commands =
4549
4650[testenv:types]
4751description = Run type checks
52+ base = tests
4853commands =
4954 mypy --check-untyped-defs {posargs}
5055
5156
5257[testenv:links]
5358description = Run link checks for root and docs markdown files
59+ base = tests
5460commands =
5561 mkdocs-linkcheck ./
5662 mkdocs-linkcheck docs/
@@ -71,13 +77,12 @@ commands =
7177
7278[testenv:clean]
7379description = Clean up build, dist, and cache files
80+ runner = virtualenv
7481skip_install = true
7582env_log_dir = /tmp/.tox_clean
7683allowlist_externals =
7784 find
7885 rm
79- deps =
80- groups =
8186commands =
8287 rm -rf build
8388 rm -rf dist
@@ -93,6 +98,7 @@ commands =
9398
9499[testenv:lock]
95100description = Update pylock
101+ runner = virtualenv
96102skip_install = true
97103allowlist_externals = ./scripts/generate_pylock.sh
98104deps = uv
0 commit comments