[tox] minversion = 1.6 envlist = py27,pep8 skipsdist = True [testenv] 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}/requirements.txt -r{toxinidir}/test-requirements.txt whitelist_externals = find [testenv:pep8] basepython = python3 commands = flake8 [testenv:venv] basepython = python3 # NOTE(jaegerandi): this target does not use constraints because # upstream infra does not yet support it. Once that's fixed, we can # drop the install_command. install_command = pip install -U --force-reinstall {opts} {packages} changedir={toxinidir}/tests commands = find . -type f -name "*.pyc" -delete ansible-playbook -i inventory test.yml [flake8] exclude = .venv*,.git,.tox,dist,doc,*lib/python*,*.egg,.update-venv max-complexity = 16