novajoin-tempest-plugin/tox.ini

42 lines
959 B
INI

[tox]
minversion = 2.0
envlist = py36,py35,py27,pep8,docs
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning
deps = -r{toxinidir}/test-requirements.txt
whitelist_externals = find
commands =
find . -type f -name "*.pyc" -delete
stestr run --slowest {posargs}
[testenv:pep8]
commands =
doc8 doc/source/ HACKING.rst CONTRIBUTING.rst README.rst
flake8 {posargs}
[testenv:venv]
commands = {posargs}
[testenv:debug]
commands = oslo_debug_helper {posargs}
[testenv:docs]
commands = python setup.py build_sphinx
[doc8]
extension=.rst
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
ignore = E123,E125,W504,W605
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build