Nishant Kumar | 9d06ea9 | 2017-07-20 12:13:03 -0400 | [diff] [blame] | 1 | [tox] |
| 2 | minversion = 2.0 |
Sean McGinnis | 44fed34 | 2017-12-01 16:44:57 -0600 | [diff] [blame] | 3 | envlist = pep8 |
Nishant Kumar | 9d06ea9 | 2017-07-20 12:13:03 -0400 | [diff] [blame] | 4 | skipsdist = True |
| 5 | |
| 6 | [testenv] |
| 7 | usedevelop = True |
| 8 | install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages} |
| 9 | setenv = |
| 10 | VIRTUAL_ENV={envdir} |
| 11 | PYTHONWARNINGS=default::DeprecationWarning |
| 12 | deps = -r{toxinidir}/test-requirements.txt |
| 13 | commands = python setup.py test --slowest --testr-args='{posargs}' |
| 14 | |
| 15 | [testenv:pep8] |
| 16 | commands = flake8 {posargs} |
| 17 | |
| 18 | [testenv:venv] |
| 19 | commands = {posargs} |
| 20 | |
Nishant Kumar | 9d06ea9 | 2017-07-20 12:13:03 -0400 | [diff] [blame] | 21 | [flake8] |
| 22 | # E123, E125 skipped as they are invalid PEP-8. |
| 23 | |
| 24 | show-source = True |
| 25 | ignore = E123,E125 |
| 26 | builtins = _ |
| 27 | exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build |