[tox] envlist = pypy,py37,py36,py27,pep8 minversion = 2.0 skipsdist = True [testenv] usedevelop = True install_command = pip install {opts} {packages} deps = -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt} -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt commands = find . -type f -name "*.pyc" -delete stestr run --slowest {posargs} whitelist_externals = find [testenv:pypy] basepython = python3 deps = -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt} setuptools<3.2 -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt [testenv:pep8] basepython = python3 sitepackages = False commands = flake8 [testenv:venv] basepython = python3 commands = {posargs} [testenv:functional] setenv = OS_TEST_PATH = ./searchlightclient/tests/functional passenv = OS_* [testenv:cover] basepython = python3 setenv = VIRTUAL_ENV={envdir} PYTHON=coverage run --source searchlightclient --parallel-mode commands = stestr run {posargs} coverage combine coverage html -d cover coverage xml -o cover/coverage.xml coverage report [testenv:docs] basepython = python3 deps = -r{toxinidir}/doc/requirements.txt commands = sphinx-build -b html doc/source doc/build/html [flake8] ignore = E123,E126,E128,E241,E265,E713,H202,H405,H238 show-source = True exclude=.venv,.git,.tox,dist,*lib/python*,*egg,build max-complexity=20 [hacking] import_exceptions = searchlightclient.openstack.common._i18n [testenv:lower-constraints] basepython = python3 deps = -c{toxinidir}/lower-constraints.txt -r{toxinidir}/test-requirements.txt -r{toxinidir}/requirements.txt