-
Notifications
You must be signed in to change notification settings - Fork 9
/
tox.ini
51 lines (44 loc) · 902 Bytes
/
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
[tox]
envlist =
py38,py39,py310,py311,py312,pypy3
py312-cover,coverage,
docs,lint-pkg
[testenv]
commands =
python --version
pytest --no-cov {posargs:}
extras =
testing
setenv =
COVERAGE_FILE=.coverage.{envname}
[testenv:py312-cover]
commands =
python --version
pytest --cov {posargs:}
[testenv:coverage]
skip_install = true
commands =
coverage combine
coverage xml
coverage report --fail-under=100
deps =
coverage
setenv =
COVERAGE_FILE=.coverage
depends = py312-cover
[testenv:docs]
allowlist_externals = make
commands =
make -C docs {posargs:html epub} BUILDDIR={envdir} "SPHINXOPTS=-W -E -D suppress_warnings=ref.term"
extras =
docs
[testenv:lint-pkg]
skip_install = true
deps =
check-manifest
twine
commands =
python --version
check-manifest
python -m build -o {envdir}/dist
twine check {envdir}/dist/*