-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
74 lines (66 loc) · 1.25 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
[tox]
isolated_build = true
envlist =
formatting
linting
typing
py{36,38,py3}-{stable,latest,cov}
cov-html
docs-html
build
[testenv]
passenv = LANG
deps =
{stable,cov}: -c requirements.txt
pytest
cov: coverage
commands =
{stable,latest}: pytest --doctest-modules src tests
cov: coverage run --source=src,tests -p -m pytest --doctest-modules src tests
[testenv:cov-html]
deps =
-c requirements.txt
coverage
skip_install = true
commands =
coverage combine
coverage report
coverage html -d reports/test_coverage
[testenv:docs-html]
deps =
-c requirements.txt
sphinx
m2r2
sphinxcontrib-apidoc
commands =
sphinx-build -W -b html docs docs/_build
[testenv:formatting]
deps =
-c requirements.txt
black
skip_install = true
commands =
black --check docs setup.py src tests
# TODO: apply pylint to tests directory
[testenv:linting]
deps =
-c requirements.txt
pylint
commands =
pylint src
[testenv:typing]
deps =
-c requirements.txt
mypy
lxml
commands =
mypy --html-report=reports/type_coverage src
[testenv:build]
deps =
pep517
twine
extras =
skip_install = true
commands =
python -m pep517.build --binary --source .
twine check dist/*