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