-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
50 lines (44 loc) · 1.16 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
[tox]
envlist = coverage-clean, py34, py35, packaging, style, docs, coverage-report
[testenv]
deps =
pytest
coverage
commands = coverage run --parallel-mode --module pytest {posargs}
[testenv:packaging]
# Make sure packaging is correctly setup.
#
# - Check setup.py metadata.
# - Make sure README.rst / long_description markup has no syntax errors.
# - Check that MANIFEST.in covers everything under version control.
skip_install = true
deps =
readme-renderer
check-manifest
commands =
python setup.py check --strict --metadata --restructuredtext
check-manifest
[testenv:style]
# Make sure code is somewhat PEP8 compliant and passes some sanity checks.
skip_install = true
deps =
flake8
isort
commands =
flake8 .
isort --check-only --diff --recursive .
[testenv:docs]
deps = sphinx
commands =
sphinx-build -qW -b html -d {envtmpdir}/doctrees docs docs/_build/html
sphinx-build -qW -b doctest -d {envtmpdir}/doctrees docs docs/_build/doctest
[testenv:coverage-clean]
skip_install = true
deps = coverage
commands = coverage erase
[testenv:coverage-report]
skip_install = true
deps = coverage
commands =
coverage combine
coverage report --fail-under=100