-
Notifications
You must be signed in to change notification settings - Fork 14
/
tox.ini
91 lines (74 loc) · 1.6 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
[tox]
min_version = 4.0
env_list = py38,py39,py310,py311,py312
[testenv]
description = Run all tests
deps =
.[dev]
commands =
pytest tests/ {posargs}
[testenv:test-unit]
description = Run unit tests
deps =
.[dev]
commands =
python -m pytest tests/unit {posargs}
[testenv:test-integration]
description = Run integration tests
deps =
.[dev]
commands =
python -m pytest tests/integration {posargs}
[testenv:test-e2e]
description = Run end-to-end tests
deps =
.[dev]
commands =
python -m pytest tests/e2e {posargs}
[testenv:quality]
description = Run all quality checks
deps =
.[dev]
commands =
ruff check
python -m mdformat --check README.md DEVELOPING.md CONTRIBUTING.md CODE_OF_CONDUCT.md docs/ src/ tests/
[testenv:style]
description = Run style checks and fixes
deps =
.[dev]
commands =
ruff format
ruff check --fix
python -m mdformat README.md DEVELOPING.md CONTRIBUTING.md CODE_OF_CONDUCT.md docs/ src/ tests/
[testenv:types]
description = Run type checks
deps =
.[dev]
commands =
mypy --check-untyped-defs
[testenv:build]
description = Build the project
deps =
build
setuptools
wheel
loguru
toml
commands =
python utils/inject_build_props.py
python -m build
[testenv:clean]
description = Clean up build, dist, and cache files
skip_install = true
deps =
commands =
rm -rf build
rm -rf dist
rm -rf *.egg-info
find . -type f -name "*.pyc" -delete
find . -type d -name "__pycache__" -exec rm -r {} +
rm -rf .mypy_cache
rm -rf .pytest_cache
rm -rf .tox
rm -rf .ruff_cache
rm -rf .coverage