[tox] minversion = 2.0 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 = find gluon -type f -name "*.pyc" -delete ostestr '{posargs}' whitelist_externals = bash find [testenv:pep8] basepython = python3 commands = flake8 [testenv:venv] basepython = python3 commands = {posargs} [testenv:cover] basepython = python3 commands = python setup.py test --coverage --testr-args='{posargs}' [testenv:docs] basepython = python3 commands = bash -c "rm -rf doc/build" bash -c "rm -rf doc/source/api" python setup.py build_sphinx [testenv:releasenotes] basepython = python3 commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html [testenv:genconfig] basepython = python3 commands = oslo-config-generator --config-file=etc/proton/proton-config-generator.conf [testenv:debug] basepython = python3 commands = oslo_debug_helper {posargs} [flake8] show-source = True builtins = _ # D100: Missing docstring in public module # D101: Missing docstring in public class # D102: Missing docstring in public method # D103: Missing docstring in public function # D104: Missing docstring in public package # D203: 1 blank line required before class docstring (deprecated in pep257) # F401: Module imported but unused ignore = D100,D101,D102,D103,D104,D203,F401 exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build