[tox] minversion = 3.1.1 envlist = py36,pep8 skipsdist = True [testenv] basepython = python3 usedevelop = True setenv = VIRTUAL_ENV={envdir} PYTHONWARNINGS=default::DeprecationWarning OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt passenv = TEMPEST_* OS_TEST_* whitelist_externals = find, stestr commands = find . -type f -name "*.py[c|o]" -delete stestr run {posargs} [testenv:pep8] whitelist_externals = bash commands = bash tools/flake8wrap.sh {posargs} [testenv:venv] commands = {posargs} [testenv:genconfig] basepython = python3 commands = oslo-config-generator --config-file etc/cloudpulse/cloudpulse-config-generator.conf [testenv:cover] basepython = python3 commands = python setup.py test --coverage --testr-args='{posargs}' [testenv:docs] basepython = python3 commands = python setup.py build_sphinx [testenv:debug] basepython = python3 commands = oslo_debug_helper {posargs} [testenv:bandit] basepython = python3 deps = bandit commands = bandit -c bandit.yaml -r cloudpulse -p gate [flake8] # E123, E125 skipped as they are invalid PEP-8. show-source = True ignore = E123,E125 builtins = _ exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build