28c7eacab2
See the following for more info: * http://lists.openstack.org/pipermail/openstack-dev/2014-September/045845.html * http://lists.openstack.org/pipermail/openstack-dev/2014-September/045873.html * https://review.openstack.org/#/c/121044/ Change-Id: I98161082cd72b92a7af44f8be8b5a92328a72281
43 lines
1.1 KiB
INI
43 lines
1.1 KiB
INI
[tox]
|
|
minversion = 1.6
|
|
envlist = docs,py27,pep8
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
install_command = pip install -U {opts} {packages}
|
|
whitelist_externals = find
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/doc-requirements.txt
|
|
commands =
|
|
find . -type f -name "*.pyc" -delete
|
|
python setup.py testr --slowest --testr-args='{posargs}'
|
|
|
|
[testenv:cover]
|
|
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
doc8 specs doc/source octavia \
|
|
CONSTITUTION.rst HACKING.rst README.rst ROADMAP.rst
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[flake8]
|
|
# Ignoring O321 because it's unnecessarily restricting use of json package.
|
|
# jsonutils version doesn't add additional value
|
|
ignore = O321
|
|
show-source = true
|
|
builtins = _
|
|
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools,.ropeproject,rally-scenarios
|
|
|
|
[hacking]
|
|
import_exceptions = octavia.i18n
|
|
local-check-factory = octavia.hacking.checks.factory
|
|
|
|
[doc8]
|
|
max-line-length = 79
|