[tox] minversion = 2.0 #Removed py35 and pypy not included for now. envlist = py36,pep8 skipsdist = True [testenv] basepython = python3.6 usedevelop = True setenv = VIRTUAL_ENV={envdir} PYTHONWARNINGS=default::DeprecationWarning deps = -r {toxinidir}/requirements.txt -r {toxinidir}/test-requirements.txt commands = stestr run [testenv:bandit] deps = .[bandit] commands = bandit -r ord -n5 -c bandit.yaml [testenv:pep8] commands = flake8 {posargs} {[testenv:bandit]commands} [testenv:venv] commands = {posargs} [testenv:cover] commands = python setup.py test --coverage --testr-args='{posargs}' [testenv:docs] commands = python setup.py build_sphinx [testenv:releasenotes] commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html [testenv:debug] commands = oslo_debug_helper {posargs} [flake8] show-source = True ignore = F841,H101,H405 builtins = _ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build