| [tox] |
| minversion = 3.1.1 |
| envlist = py39,pypy,pep8 |
| skipsdist = True |
| ignore_basepython_conflict = True |
| |
| [testenv] |
| basepython = python3 |
| usedevelop = True |
| install_command = pip install -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} {opts} {packages} |
| setenv = |
| VIRTUAL_ENV={envdir} |
| PYTHONWARNINGS=default::DeprecationWarning |
| deps = -r{toxinidir}/test-requirements.txt |
| commands = stestr run --slowest {posargs} |
| |
| [testenv:pep8] |
| commands = |
| flake8 {posargs} |
| |
| [testenv:venv] |
| commands = {posargs} |
| |
| [testenv:debug] |
| commands = oslo_debug_helper {posargs} |
| |
| [flake8] |
| # W504 line break after binary operator |
| show-source = True |
| ignore = W504 |
| builtins = _ |
| exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build |