[tox] minversion = 3.18.0 envlist = py37,pep8 skipsdist = True ignore_basepython_conflict = True [testenv] usedevelop = True basepython = python3 # tox is silly... these need to be separated by a newline.... allowlist_externals = bash find rm env install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} {opts} {packages} setenv = VIRTUAL_ENV={envdir} OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=60 PYTHONWARNINGS=default::DeprecationWarning LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=C deps = -r{toxinidir}/test-requirements.txt commands = find . -type f -name "*.pyc" -delete rm -f .testrepository/times.dbm [testenv:pep8] commands = flake8 {posargs} [testenv:venv] commands = {posargs} [testenv:debug] commands = oslo_debug_helper {posargs} [flake8] # E123, E125 skipped as they are invalid PEP-8. show-source = True ignore = E122,E123,E125,E126,E127,E128,W503,W504 builtins = _ # H106: Don't put vim configuration in source files # H203: Use assertIs(Not)None to check for None enable-extensions=H106,H203 exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build