blob: 9dccfbc9c07a07656fd74e6b4875bfdebcd58ae9 [file] [log] [blame]
Mateusz Matuszkowiak2820c662018-11-21 12:07:25 +01001[tox]
2minversion = 2.0
3skipsdist = True
4envlist = py27,pycodestyle,flake8,bandit,releasenotes
5
6[testenv]
7usedevelop = True
8setenv = VIRTUAL_ENV={envdir}
9 OS_STDOUT_NOCAPTURE=False
10 OS_STDERR_NOCAPTURE=False
11deps =
12 -r{toxinidir}/test-requirements.txt
13 -r{toxinidir}/requirements.txt
14commands =
15 {toxinidir}/run-tests.sh {posargs}
16 {toxinidir}/run-func-tests.sh {posargs}
17
18[testenv:flake8]
19basepython = python2
20commands =
21 flake8 -v
22
23[testenv:pycodestyle]
24basepython = python2
25commands =
26 pycodestyle -v
27
28[testenv:bandit]
29basepython = python2
30commands = bandit -r -x tests -s B110,B410 sf_notifier
31
32[testenv:venv]
33basepython = python2
34commands = {posargs}
35
36[flake8]
37exclude = .tox,.eggs,doc,venv
38show-source = true
39enable-extensions = H904
40
41[testenv:docs]
42basepython = python2
43deps =
44 -e
45 .[test,doc]
46 doc
47commands = doc8 --ignore-path doc/source/rest.rst,doc/source/comparison-table.rst doc/source