-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
62 lines (57 loc) · 1.03 KB
/
tox.ini
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[tox]
min_version = 4.23.2
env_list =
py312
lint
type
fix
requires =
tox-uv>=1.16.0
isolated_build = True
[testenv]
runner = uv-venv-lock-runner
description = run unit tests
deps =
pytest>=8.3.3
pytest-cov>=6.0.0
allowlist_externals =
pytest
commands =
pytest {posargs:tests} --cov --cov-report=xml
[testenv:lint]
description = run linters
skip_install = true
deps =
ruff>=0.7.4
allowlist_externals =
ruff
commands =
ruff check {posargs:.}
ruff format --check {posargs:.}
[testenv:type]
runner = uv-venv-lock-runner
description = run type checks
deps =
mypy>=1.13.0
allowlist_externals =
mypy
commands =
mypy {posargs:src tests}
[testenv:fix]
description = run code formatter and linter (auto-fix)
skip_install = true
deps =
pre-commit-uv>=4.1.1
allowlist_externals =
pre-commit
commands =
pre-commit run --all-files --show-diff-on-failure
[testenv:dev]
runner = uv-venv-lock-runner
description = dev environment
extras =
dev
test
type
commands =
uv pip tree