forked from ansible-community/ara
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
49 lines (41 loc) · 900 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
48
49
[tox]
minversion = 2.0
envlist = py27,pep8
skipdist = True
[testenv]
basepython =
{py27,venv,cover,docs,pep8}: python2.7
{py35}: python3.5
sitepackages = True
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt
[testenv:venv]
commands = {posargs}
[testenv:docs]
commands = sphinx-build -W -b html doc/source doc/build/html
[testenv:pep8]
commands =
flake8 ara
bandit -r ara -x ara/tests
[testenv:py27]
commands =
py.test -v ara/tests/unit
passenv =
HOME
[testenv:py35]
commands =
py.test -v ara/tests/unit
passenv =
HOME
[testenv:cover]
commands =
py.test --cov=ara --cov-report=html ara/tests/unit
passenv =
HOME
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
ignore = E123,E125
show-source = True
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build