blob: e786626680b9f3dc8f441ee2ae9360c411236898 [file] [log] [blame]
Marc Koderer3529ea72016-12-02 13:21:03 +01001[tox]
Ghanshyam1bf0dbb2020-01-23 17:09:48 -06002minversion = 3.1.1
wu.shiming696827e2020-09-22 14:59:58 +08003envlist = py38,pypy,pep8
Marc Koderer3529ea72016-12-02 13:21:03 +01004skipsdist = True
Ghanshyam1bf0dbb2020-01-23 17:09:48 -06005ignore_basepython_conflict = True
Marc Koderer3529ea72016-12-02 13:21:03 +01006
7[testenv]
Ghanshyam1bf0dbb2020-01-23 17:09:48 -06008basepython = python3
Marc Koderer3529ea72016-12-02 13:21:03 +01009usedevelop = True
wu.shiming170a9482020-12-14 17:49:36 +080010install_command = pip install -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} {opts} {packages}
Marc Koderer3529ea72016-12-02 13:21:03 +010011setenv =
12 VIRTUAL_ENV={envdir}
13 PYTHONWARNINGS=default::DeprecationWarning
14deps = -r{toxinidir}/test-requirements.txt
Vu Cong Tuan96d57e62018-07-09 13:44:31 +070015commands = stestr run --slowest {posargs}
Marc Koderer3529ea72016-12-02 13:21:03 +010016
17[testenv:pep8]
Brianna Poulos27d768a2017-02-24 14:01:34 -050018commands =
19 flake8 {posargs}
Marc Koderer3529ea72016-12-02 13:21:03 +010020
21[testenv:venv]
22commands = {posargs}
23
24[testenv:debug]
25commands = oslo_debug_helper {posargs}
26
27[flake8]
jacky06a318f6d2019-01-04 23:55:03 +080028# W504 line break after binary operator
Marc Koderer3529ea72016-12-02 13:21:03 +010029show-source = True
Arundhati Surpur42eec762017-07-07 11:24:34 +053030ignore = W504
Marc Koderer3529ea72016-12-02 13:21:03 +010031builtins = _
32exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build