blob: a16d706d675662cd5659f31a978e13cc697b41c4 [file] [log] [blame]
David Lyle64302f12016-04-29 15:46:34 -06001[tox]
Akihiro Motoki84adbf32020-03-29 05:47:31 +09002minversion = 2.0
3envlist = pep8
David Lyle64302f12016-04-29 15:46:34 -06004skipsdist = True
5
6[testenv]
Akihiro Motoki84adbf32020-03-29 05:47:31 +09007basepython = python3
David Lyle64302f12016-04-29 15:46:34 -06008usedevelop = True
Akihiro Motoki84adbf32020-03-29 05:47:31 +09009deps =
10 -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
11 -r{toxinidir}/requirements.txt
12 -r{toxinidir}/test-requirements.txt
Ha Manh Dong2d24cb72018-07-19 09:48:23 +070013commands = stestr run --slowest {posargs}
David Lyle64302f12016-04-29 15:46:34 -060014
15[testenv:pep8]
16commands = flake8
17
18[testenv:venv]
19commands = {posargs}
20
David Lyle64302f12016-04-29 15:46:34 -060021[flake8]
David Lyle64302f12016-04-29 15:46:34 -060022show-source = True
Andreas Jaegerecc60ca2020-03-28 12:13:24 +010023# W504 line break after binary operator
24# (W503 and W504 are incompatible and we need to choose one of them.
25# Existing codes follows W503, so we disable W504.)
26ignore = W504
David Lyle64302f12016-04-29 15:46:34 -060027builtins = _
28exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build