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 |
dengzhaosen | f2bb985 | 2021-12-22 11:13:14 +0800 | [diff] [blame] | 3 | envlist = py39,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 |
wu.shiming | 170a948 | 2020-12-14 17:49:36 +0800 | [diff] [blame] | 10 | install_command = pip install -c{env:TOX_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] |
jacky06 | a318f6d | 2019-01-04 23:55:03 +0800 | [diff] [blame] | 28 | # W504 line break after binary operator |
Marc Koderer | 3529ea7 | 2016-12-02 13:21:03 +0100 | [diff] [blame] | 29 | show-source = True |
Arundhati Surpur | 42eec76 | 2017-07-07 11:24:34 +0530 | [diff] [blame] | 30 | ignore = W504 |
Marc Koderer | 3529ea7 | 2016-12-02 13:21:03 +0100 | [diff] [blame] | 31 | builtins = _ |
| 32 | exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build |