Jim Rollenhagen | 4f8f229 | 2016-11-18 06:22:18 -0500 | [diff] [blame] | 1 | [tox] |
| 2 | minversion = 2.0 |
sandriichenko | 0c8da9b | 2018-03-05 14:41:02 +0200 | [diff] [blame] | 3 | envlist = pep8 |
Jim Rollenhagen | 4f8f229 | 2016-11-18 06:22:18 -0500 | [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 | |
| 21 | [testenv:cover] |
| 22 | commands = python setup.py test --coverage --testr-args='{posargs}' |
| 23 | |
| 24 | [testenv:docs] |
| 25 | commands = python setup.py build_sphinx |
| 26 | |
| 27 | [testenv:debug] |
| 28 | commands = oslo_debug_helper {posargs} |
| 29 | |
| 30 | [flake8] |
John L. Villalovos | d22378d | 2017-08-01 14:47:54 -0700 | [diff] [blame] | 31 | ignore = E129 |
Jim Rollenhagen | 4f8f229 | 2016-11-18 06:22:18 -0500 | [diff] [blame] | 32 | |
| 33 | show-source = True |
| 34 | builtins = _ |
| 35 | exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build |