Marc Koderer | 3529ea7 | 2016-12-02 13:21:03 +0100 | [diff] [blame] | 1 | [tox] |
| 2 | minversion = 2.0 |
sandriichenko | d3c9f70 | 2018-03-05 14:27:47 +0200 | [diff] [blame] | 3 | envlist = pep8 |
Marc Koderer | 3529ea7 | 2016-12-02 13:21:03 +0100 | [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 |
Jeremy Liu | c2d9b66 | 2017-04-12 14:21:29 +0800 | [diff] [blame] | 13 | commands = python setup.py testr --slowest --testr-args='{posargs}' |
Marc Koderer | 3529ea7 | 2016-12-02 13:21:03 +0100 | [diff] [blame] | 14 | |
| 15 | [testenv:pep8] |
Brianna Poulos | 27d768a | 2017-02-24 14:01:34 -0500 | [diff] [blame] | 16 | commands = |
| 17 | flake8 {posargs} |
Marc Koderer | 3529ea7 | 2016-12-02 13:21:03 +0100 | [diff] [blame] | 18 | |
| 19 | [testenv:venv] |
| 20 | commands = {posargs} |
| 21 | |
| 22 | [testenv:debug] |
| 23 | commands = oslo_debug_helper {posargs} |
| 24 | |
| 25 | [flake8] |
| 26 | # E123, E125 skipped as they are invalid PEP-8. |
| 27 | |
| 28 | show-source = True |
| 29 | ignore = E123,E125 |
| 30 | builtins = _ |
| 31 | exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build |