ranger-agent/tox.ini

47 lines
1021 B
INI

[tox]
minversion = 2.0
#Removed py35 and pypy not included for now.
envlist = py36,pep8
skipsdist = True
[testenv]
basepython = python3
usedevelop = True
setenv =
VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning
install_command = pip install {opts} {packages}
commands = stestr run
deps = -r {toxinidir}/requirements.txt
-r {toxinidir}/test-requirements.txt
[testenv:bandit]
deps = .[bandit]
commands = bandit -r ord -n5 -c bandit.yaml
[testenv:pep8]
commands =
flake8 {posargs}
[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,W503,E902
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build