-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
44 lines (37 loc) · 1.06 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
[tox]
envlist = flake8,py35,doc,coverage
[testenv:flake8]
basepython=python
deps=flake8
commands=flake8 {toxinidir}
[testenv:coverage]
basepython=python
commands = coverage erase
coverage run setup.py test
coverage html
coverage report
deps = -r{toxinidir}/dev-requirements.txt
# coverage run but no report
# so travis diplay reporting even if coverage under 80%
[testenv:coverage-no-report]
basepython=python
commands = coverage erase
coverage run setup.py test
coveralls
deps =
-r{toxinidir}/dev-requirements.txt
coveralls
# ensure this env var is available in this env (by default, tox wouldn't pass it)
passenv=COVERALLS_REPO_TOKEN
[testenv:doc]
basepython=python
commands = sphinx-build -b html {toxinidir}/doc/source {toxinidir}/doc/build
deps = -r{toxinidir}/dev-requirements.txt
[flake8]
;ignore = E226,E302,E41 ; see http://flake8.readthedocs.org/en/latest/warnings.html#error-codes
;max-line-length = 160
exclude = doc/*,build/*,.tox,.eggs
max-complexity = 10
[pytest]
addopts = -rsxX -q
testpaths = tests