Marc Koderer | 3529ea7 | 2016-12-02 13:21:03 +0100 | [diff] [blame] | 1 | [tox] |
Ghanshyam | 1bf0dbb | 2020-01-23 17:09:48 -0600 | [diff] [blame] | 2 | minversion = 3.1.1 |
| 3 | envlist = py37,pypy,pep8 |
Marc Koderer | 3529ea7 | 2016-12-02 13:21:03 +0100 | [diff] [blame] | 4 | skipsdist = True |
Ghanshyam | 1bf0dbb | 2020-01-23 17:09:48 -0600 | [diff] [blame] | 5 | ignore_basepython_conflict = True |
Marc Koderer | 3529ea7 | 2016-12-02 13:21:03 +0100 | [diff] [blame] | 6 | |
| 7 | [testenv] |
Ghanshyam | 1bf0dbb | 2020-01-23 17:09:48 -0600 | [diff] [blame] | 8 | basepython = python3 |
Marc Koderer | 3529ea7 | 2016-12-02 13:21:03 +0100 | [diff] [blame] | 9 | usedevelop = True |
pengyuesheng | a6cec8a | 2019-09-25 17:36:53 +0800 | [diff] [blame] | 10 | install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} {opts} {packages} |
Marc Koderer | 3529ea7 | 2016-12-02 13:21:03 +0100 | [diff] [blame] | 11 | setenv = |
| 12 | VIRTUAL_ENV={envdir} |
| 13 | PYTHONWARNINGS=default::DeprecationWarning |
| 14 | deps = -r{toxinidir}/test-requirements.txt |
Vu Cong Tuan | 96d57e6 | 2018-07-09 13:44:31 +0700 | [diff] [blame] | 15 | commands = stestr run --slowest {posargs} |
Marc Koderer | 3529ea7 | 2016-12-02 13:21:03 +0100 | [diff] [blame] | 16 | |
| 17 | [testenv:pep8] |
Brianna Poulos | 27d768a | 2017-02-24 14:01:34 -0500 | [diff] [blame] | 18 | commands = |
| 19 | flake8 {posargs} |
Marc Koderer | 3529ea7 | 2016-12-02 13:21:03 +0100 | [diff] [blame] | 20 | |
| 21 | [testenv:venv] |
| 22 | commands = {posargs} |
| 23 | |
| 24 | [testenv:debug] |
| 25 | commands = oslo_debug_helper {posargs} |
| 26 | |
| 27 | [flake8] |
| 28 | # E123, E125 skipped as they are invalid PEP-8. |
jacky06 | 9fd57e5 | 2019-01-04 23:55:03 +0800 | [diff] [blame] | 29 | # W504 line break after binary operator |
Marc Koderer | 3529ea7 | 2016-12-02 13:21:03 +0100 | [diff] [blame] | 30 | |
| 31 | show-source = True |
jacky06 | 9fd57e5 | 2019-01-04 23:55:03 +0800 | [diff] [blame] | 32 | ignore = E123,E125,W504 |
Marc Koderer | 3529ea7 | 2016-12-02 13:21:03 +0100 | [diff] [blame] | 33 | builtins = _ |
| 34 | exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build |