blob: a254a981bcbc815c9c1886789d1a4e0838ffcdd8 [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 =
Michal Kobusfc1e7732019-05-16 18:30:48 +020021 flake8 -v --ignore I100,I201,W504
Mateusz Matuszkowiak2820c662018-11-21 12:07:25 +010022
23[testenv:pycodestyle]
24basepython = python2
25commands =
Michal Kobusfc1e7732019-05-16 18:30:48 +020026 pycodestyle -v --ignore I100,W504
Mateusz Matuszkowiak2820c662018-11-21 12:07:25 +010027
28[testenv:bandit]
29basepython = python2
Michal Kobusfc1e7732019-05-16 18:30:48 +020030commands = bandit -r -x tests -s B108,B110,B101,B301,B403,B410 sf_notifier
Mateusz Matuszkowiak2820c662018-11-21 12:07:25 +010031
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