[tox] envlist = pep8 minversion = 3.18.0 skipsdist = True ignore_basepython_conflict = True [testenv] basepython = python3 usedevelop = True setenv = VIRTUAL_ENV={envdir} deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt passenv = http_proxy https_proxy no_proxy [testenv:bashate] whitelist_externals = bash commands = bash -c "find {toxinidir} -not -wholename \*.tox/\* -and \( -name \*.sh -or -wholename \*.d/\* -and -not -name \*.md -and -not -name \*.rst -and -not -name \*.py \) -print0 | xargs -0 bashate -v" allowlist_externals = bash [testenv:pep8] setenv = ELEMENTS_DIR=elements commands = flake8 {posargs} {toxinidir}/tools/run_bashate.sh dib-lint allowlist_externals = /bin/bash {toxinidir}/tools/run_bashate.sh [testenv:venv] commands = {posargs} passenv = * [dib-lint] ignore=safe_sudo [flake8] show-source = true builtins = _ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools