-
Notifications
You must be signed in to change notification settings - Fork 9
/
tox.ini
76 lines (66 loc) · 1.27 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
[flake8]
max-line-length = 99
extend-ignore = E203
extend-exclude =
venv
[gh-actions]
python =
3.8: py38
3.9: py39, fmt-check, lint
3.10: py310
3.11: py311
3.12: py312
[tox]
envlist =
fmt-check
lint
type-check
py{38,39,310,311,312}
skip_missing_interpreters = true
isolated_build = true
[testenv]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev-requirements.txt
commands =
python -m pytest --cov=./ --cov-report=html --cov-report=term --cov-fail-under=100 test.py
# TODO: Get mypy checking to pass.
[testenv:type-check]
skip_install = true
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/dev-requirements.txt
commands =
mypy cppcheck_junit.py test.py
[testenv:lint]
skip_install = true
deps =
-r{toxinidir}/dev-requirements.txt
commands =
flake8
[testenv:fmt]
skip_install = true
deps =
-r{toxinidir}/dev-requirements.txt
commands =
isort .
black .
[testenv:fmt-check]
skip_install = true
deps =
-r{toxinidir}/dev-requirements.txt
commands =
isort --check .
black --check .
[testenv:build]
skip_install = true
deps =
build
commands =
{envpython} -m build
[testenv:upload]
skip_install = true
deps =
twine
commands =
{envpython} -m twine upload {toxinidir}/dist/*