blob: 6e24b6137fe7cc51bc7ccd77d0284eacc9c2c504 [file] [log] [blame]
Marc Koderer3529ea72016-12-02 13:21:03 +01001[tox]
Ghanshyam1bf0dbb2020-01-23 17:09:48 -06002minversion = 3.1.1
3envlist = py37,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
pengyueshenga6cec8a2019-09-25 17:36:53 +080010install_command = pip install -c{env:UPPER_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.
jacky069fd57e52019-01-04 23:55:03 +080029# W504 line break after binary operator
Marc Koderer3529ea72016-12-02 13:21:03 +010030
31show-source = True
jacky069fd57e52019-01-04 23:55:03 +080032ignore = E123,E125,W504
Marc Koderer3529ea72016-12-02 13:21:03 +010033builtins = _
34exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build