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 |
chenke | 98e029d | 2019-06-20 21:36:28 +0800 | [diff] [blame] | 8 | install_command = pip install {opts} {packages} |
Nishant Kumar | 9d06ea9 | 2017-07-20 12:13:03 -0400 | [diff] [blame] | 9 | setenv = |
| 10 | VIRTUAL_ENV={envdir} |
| 11 | PYTHONWARNINGS=default::DeprecationWarning |
chenke | 98e029d | 2019-06-20 21:36:28 +0800 | [diff] [blame] | 12 | deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} |
| 13 | -r{toxinidir}/test-requirements.txt |
Nishant Kumar | 9d06ea9 | 2017-07-20 12:13:03 -0400 | [diff] [blame] | 14 | commands = python setup.py test --slowest --testr-args='{posargs}' |
| 15 | |
| 16 | [testenv:pep8] |
Doug Hellmann | 5404306 | 2018-09-26 18:50:23 -0400 | [diff] [blame] | 17 | basepython = python3 |
Nishant Kumar | 9d06ea9 | 2017-07-20 12:13:03 -0400 | [diff] [blame] | 18 | commands = flake8 {posargs} |
| 19 | |
| 20 | [testenv:venv] |
Doug Hellmann | 5404306 | 2018-09-26 18:50:23 -0400 | [diff] [blame] | 21 | basepython = python3 |
Nishant Kumar | 9d06ea9 | 2017-07-20 12:13:03 -0400 | [diff] [blame] | 22 | commands = {posargs} |
| 23 | |
Nishant Kumar | 9d06ea9 | 2017-07-20 12:13:03 -0400 | [diff] [blame] | 24 | [flake8] |
| 25 | # E123, E125 skipped as they are invalid PEP-8. |
| 26 | |
| 27 | show-source = True |
| 28 | ignore = E123,E125 |
| 29 | builtins = _ |
| 30 | exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build |