renderspec/tox.ini
gecong1973 344f96b4db Don't include openstack/common in flake8 exclude list
There is no this directory openstack/common which was used
to keep codes from oslo-incubator, we have retired oslo-incubator.
Removing openstack/commonfrom all OpenStack code in favor of the
Oslo libraries is a project wide goal for the Ocata release. So
don't use this directory any more. We should drop it for improving
searching efficiency.

Change-Id: I0ea7498601b18c7aa00d04f50c83c9fa23083958
2016-11-25 11:33:16 +08:00

38 lines
791 B
INI

[tox]
envlist = py27,py34,py35,pypy,pep8
minversion = 1.6
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
OS_STDOUT_NOCAPTURE=False
OS_STDERR_NOCAPTURE=False
PYTHONHASHSEED=0
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = python setup.py testr --testr-args='{posargs}'
[testenv:pep8]
deps =
.[bandit]
{[testenv]deps}
commands =
flake8
bandit -r -s B701 renderspec -x tests
[testenv:venv]
commands = {posargs}
[testenv:bandit]
deps = .[bandit]
commands = bandit -s B701 -r renderspec -x tests
[flake8]
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build
[testenv:docs]
commands = python setup.py build_sphinx