blob: a254a981bcbc815c9c1886789d1a4e0838ffcdd8 [file] [log] [blame]
[tox]
minversion = 2.0
skipsdist = True
envlist = py27,pycodestyle,flake8,bandit,releasenotes
[testenv]
usedevelop = True
setenv = VIRTUAL_ENV={envdir}
OS_STDOUT_NOCAPTURE=False
OS_STDERR_NOCAPTURE=False
deps =
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands =
{toxinidir}/run-tests.sh {posargs}
{toxinidir}/run-func-tests.sh {posargs}
[testenv:flake8]
basepython = python2
commands =
flake8 -v --ignore I100,I201,W504
[testenv:pycodestyle]
basepython = python2
commands =
pycodestyle -v --ignore I100,W504
[testenv:bandit]
basepython = python2
commands = bandit -r -x tests -s B108,B110,B101,B301,B403,B410 sf_notifier
[testenv:venv]
basepython = python2
commands = {posargs}
[flake8]
exclude = .tox,.eggs,doc,venv
show-source = true
enable-extensions = H904
[testenv:docs]
basepython = python2
deps =
-e
.[test,doc]
doc
commands = doc8 --ignore-path doc/source/rest.rst,doc/source/comparison-table.rst doc/source