-
Notifications
You must be signed in to change notification settings - Fork 41
/
tox.ini
65 lines (58 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
[tox]
minversion = 3.10
isolated_build = True
skip_missing_interpreters = True
requires =
tox-gh-actions
envlist = # order is important
style
{test, wheel}-py3{8,9,10,11,12}
[gh-actions]
python =
3.8: {test}-py38
3.9: {test}-py39
3.10: {test}-py310
3.11: {test}-py311
3.12: {test}-py312
[testenv]
setenv =
PIP_DISABLE_PIP_VERSION_CHECK=1
PYTHONWARNINGS=default
[testenv:style]
extras =
dev
commands =
pre-commit run --all-files {posargs}
[testenv:test-py3{8,9,10,11,12}]
extras =
tests
setenv =
COVERAGE_DATA_FILE=build.out/.coverage.{basepython}
commands =
pytest \
--cov-report=html:build.out/{envname}/coverage \
--cov-report=xml:build.out/{envname}/coverage.xml \
--html-report=build.out/{envname}/report/pytest-report.html \
--html=build.out/{envname}/test/pytest.html \
{posargs:tests}
[testenv:lint-py3{8,9,10,11,12}]
extras =
dev
commands =
pylint \
vsg \
tests
[testenv:wheel-py3{8,9,10,11,12}]
package = skip
deps =
build
commands =
python -m build \
--wheel \
--outdir=dist/{envname} \
.
[testenv:docs]
extras =
docs
commands =
sphinx-build docs {env:READTHEDOCS_OUTPUT:build.out/{envname}}/html {env:SPHINXOPTS:}