-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
55 lines (48 loc) · 1.09 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
[tox]
env_list = lint, test, build
[testenv]
skip_install = True
[testenv:pyproject]
description = Lint pyproject.toml
deps =
validate-pyproject[all]
commands =
validate-pyproject pyproject.toml
[testenv:requirements]
description = Create requirements*.txt
deps =
pip-tools
commands =
pip-compile --quiet --resolver=backtracking --allow-unsafe --extra=dev --output-file=requirements-dev.txt pyproject.toml
pip-compile --quiet --resolver=backtracking --allow-unsafe --output-file=requirements.txt pyproject.toml
[testenv:lint]
description = Lint Python code with Ruff
deps =
ruff
commands =
ruff {posargs:.}
[testenv:test]
description = Run tests
deps =
pytest
pytest-sugar
commands =
pytest --cov=random_xml_csv --cov-branch --cov-report=xml {posargs:tests}
[testenv:coverage]
description = Generate test coverage report
depends =
test
deps =
coverage[toml]
commands =
coverage report --show-missing --skip-covered
coverage erase
[testenv:build]
description = Build Python wheel
depends =
lint
test
deps =
build
commands =
python -m build