-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
40 lines (34 loc) · 980 Bytes
/
tox.ini
File metadata and controls
40 lines (34 loc) · 980 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
[tox]
min_version = 4.0
requires =
tox >=4.32.0,<5
tox-uv >=1.29
env_list =
# defines what runs when `uvx tox` is executed with no `-e` argument
all-checks
pytest
[testenv]
uv_python = >=3.12
package = editable
runner = uv-venv-lock-runner
[testenv:all-checks]
description = Run all quality checks (lint)
commands =
{[testenv:lint]commands}
[testenv:lint]
description = Lint and code formatting checks (ruff)
commands =
ruff check --no-fix --show-fixes
ruff format --check
[testenv:fix]
description = Auto-fix linting and formatting issues (ruff)
commands =
ruff check --fix
ruff format
[testenv:pytest]
description = Run tests (pytest)
# parallelize with `auto` but keep max processes reasonable for CI
commands = pytest {posargs} tests -n auto --maxprocesses=10 --durations=10 --dist=worksteal
[testenv:pytest-cov]
description = Run tests with coverage (pytest)
commands = pytest --cov --cov-report=html --cov-report=term {posargs}