Skip to content

Commit 0e7ff54

Browse files
committed
Use tox-uv instead of running uv manually
1 parent 44459a4 commit 0e7ff54

3 files changed

Lines changed: 50 additions & 8 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ dev = [
3838
"pyright>=1.1",
3939
"responses>=0.23",
4040
"tox>=4.11",
41+
"tox-uv>=1.28",
4142
"watchfiles>=1.1.0",
4243
]
4344

tox.ini

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,24 @@
11
[tox]
2+
requires = tox-uv
23
envlist = clean,py{310,311,312,313,314},report
34

45
[testenv]
5-
allowlist_externals = uv
6+
runner = uv-venv-lock-runner
67
parallel_show_output = true
78
depends =
89
py{310,311,312,313,314}: clean
910
report: py{310,311,312,313,314}
1011
commands =
11-
uv run python --version
12-
uv run coverage run --context={envname} -p -m pytest -vv {posargs}
12+
python --version
13+
coverage run --context={envname} -p -m pytest -vv {posargs}
1314

1415
[testenv:report]
15-
allowlist_externals = uv
1616
passenv = COVERAGE_REPORT_COMMAND
1717
parallel_show_output = true
1818
commands =
19-
uv run coverage combine
20-
uv run {env:COVERAGE_REPORT_COMMAND:coverage report}
19+
coverage combine
20+
{env:COVERAGE_REPORT_COMMAND:coverage report}
2121

2222
[testenv:clean]
23-
allowlist_externals = uv
2423
commands =
25-
uv run coverage erase
24+
coverage erase

uv.lock

Lines changed: 42 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)