-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
47 lines (39 loc) · 988 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
[tox]
# For pyproject.toml
isolated_build = True
envlist = clean, linting, py36, py37, py38, docs, report
[testenv]
extras = tests
commands =
coverage run -m pytest {posargs}
[testenv:docs]
basepython = python3
extras = docs
commands =
# -W: turn warnings into errors
# -n: nit-picky mode, warn about all missing references
# -T: show full traceback on exception
# -b BUILDER: build html
sphinx-build -W -n -T -b html docs docs/_build/html
sphinx-build -W -n -T -b doctest docs docs/_build/html
[testenv:linting]
skip_install = True
basepython = python3
deps = pre-commit>=1.11.0
commands = pre-commit run --all-files --show-diff-on-failure
[testenv:clean]
deps = coverage
skip_install = true
commands =
coverage erase
# report env only in tox not in travis
# travis handle report with codecov
[testenv:report]
deps = coverage
skip_install = true
commands =
coverage combine
coverage report
coverage html
[flake8]
max-line-length = 120