Nishant Kumar | 9d06ea9 | 2017-07-20 12:13:03 -0400 | [diff] [blame] | 1 | [tox] |
Brian Rosmaita | e0622ed | 2020-01-16 15:15:44 -0500 | [diff] [blame] | 2 | minversion = 3.1.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 |
Brian Rosmaita | e0622ed | 2020-01-16 15:15:44 -0500 | [diff] [blame] | 5 | # this allows tox to infer the base python from the environment name |
| 6 | # and override any basepython configured in this file |
| 7 | ignore_basepython_conflict=true |
Nishant Kumar | 9d06ea9 | 2017-07-20 12:13:03 -0400 | [diff] [blame] | 8 | |
| 9 | [testenv] |
Brian Rosmaita | e0622ed | 2020-01-16 15:15:44 -0500 | [diff] [blame] | 10 | basepython = python3 |
Nishant Kumar | 9d06ea9 | 2017-07-20 12:13:03 -0400 | [diff] [blame] | 11 | usedevelop = True |
chenke | 98e029d | 2019-06-20 21:36:28 +0800 | [diff] [blame] | 12 | install_command = pip install {opts} {packages} |
Nishant Kumar | 9d06ea9 | 2017-07-20 12:13:03 -0400 | [diff] [blame] | 13 | setenv = |
| 14 | VIRTUAL_ENV={envdir} |
| 15 | PYTHONWARNINGS=default::DeprecationWarning |
chenke | 98e029d | 2019-06-20 21:36:28 +0800 | [diff] [blame] | 16 | deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} |
| 17 | -r{toxinidir}/test-requirements.txt |
Nishant Kumar | 9d06ea9 | 2017-07-20 12:13:03 -0400 | [diff] [blame] | 18 | commands = python setup.py test --slowest --testr-args='{posargs}' |
| 19 | |
| 20 | [testenv:pep8] |
| 21 | commands = flake8 {posargs} |
| 22 | |
| 23 | [testenv:venv] |
| 24 | commands = {posargs} |
| 25 | |
Nishant Kumar | 9d06ea9 | 2017-07-20 12:13:03 -0400 | [diff] [blame] | 26 | [flake8] |
| 27 | # E123, E125 skipped as they are invalid PEP-8. |
| 28 | |
| 29 | show-source = True |
| 30 | ignore = E123,E125 |
| 31 | builtins = _ |
| 32 | exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build |