[tox] minversion = 1.6 envlist = py35,py27,pep8 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} deps = -r{toxinidir}/test-requirements.txt commands = python setup.py test --slowest --testr-args='{posargs}' whitelist_externals = sh [testenv:pep8] commands = sh tools/pretty_flake8.sh [testenv:venv] commands = {posargs} [testenv:cover] commands = python setup.py test --coverage --testr-args='{posargs}' coverage report [testenv:docs] commands = python setup.py build_sphinx [testenv:debug] commands = oslo_debug_helper -t kosmos/tests {posargs} [testenv:releasenotes] commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html [hacking] import_exceptions = kosmos._i18n [flake8] show-source = True ignore = H302,H306,H402,H404,H405,H904 builtins = _ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools