/
tox.ini
56 lines (45 loc) · 1.12 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
[tox]
envlist = py36-{tests,codecov,coveralls,docs}, flake8
[travis]
python =
3.6: py36
[travis:env]
TOX_ENV =
pytest: tests, codecov, coveralls
docs: docs
linter: flake8
[testenv:py36-tests]
deps =
-rrequirements.txt
-rtests/requirements.txt
commands = py.test --cov {envsitepackagesdir}/foo {posargs}
[testenv:py36-codecov]
passenv = CI TRAVIS TRAVIS_*
deps = codecov
commands = codecov
[testenv:py36-coveralls]
passenv = CI TRAVIS TRAVIS_*
deps = python-coveralls
commands = coveralls
[testenv:py36-docs]
skipsdist = True
deps =
sphinx
sphinx_rtd_theme
pbr
commands =
sphinx-build docs "{toxworkdir}/docs/_build" --color -W -bhtml {posargs}
sphinx-build docs "{toxworkdir}/docs/_build" --color -W -bdoctest {posargs}
[testenv:py36-flake8]
basepython = python3
skip_install = true
deps =
flake8
flake8-colors
flake8-docstrings
flake8-import-order
pep8-naming
commands = flake8 setup.py docs/conf.py tests/ foo/
[flake8]
application-import-names = flake8
format = ${cyan}%(path)s${reset}:${yellow_bold}%(row)d${reset}:${green_bold}%(col)d${reset}: ${red_bold}%(code)s${reset} %(text)s