blob: 07ba459840b082356e44e2cd81469443af45551c [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]
28# E123, E125 skipped as they are invalid PEP-8.
29
30show-source = True
31ignore = E123,E125
32builtins = _
33exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build