David Lyle | 64302f1 | 2016-04-29 15:46:34 -0600 | [diff] [blame] | 1 | [tox] |
Akihiro Motoki | 84adbf3 | 2020-03-29 05:47:31 +0900 | [diff] [blame] | 2 | minversion = 2.0 |
| 3 | envlist = pep8 |
David Lyle | 64302f1 | 2016-04-29 15:46:34 -0600 | [diff] [blame] | 4 | skipsdist = True |
| 5 | |
| 6 | [testenv] |
Akihiro Motoki | 84adbf3 | 2020-03-29 05:47:31 +0900 | [diff] [blame] | 7 | basepython = python3 |
David Lyle | 64302f1 | 2016-04-29 15:46:34 -0600 | [diff] [blame] | 8 | usedevelop = True |
Akihiro Motoki | 84adbf3 | 2020-03-29 05:47:31 +0900 | [diff] [blame] | 9 | deps = |
| 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 Dong | 2d24cb7 | 2018-07-19 09:48:23 +0700 | [diff] [blame] | 13 | commands = stestr run --slowest {posargs} |
David Lyle | 64302f1 | 2016-04-29 15:46:34 -0600 | [diff] [blame] | 14 | |
| 15 | [testenv:pep8] |
| 16 | commands = flake8 |
| 17 | |
| 18 | [testenv:venv] |
| 19 | commands = {posargs} |
| 20 | |
David Lyle | 64302f1 | 2016-04-29 15:46:34 -0600 | [diff] [blame] | 21 | [flake8] |
David Lyle | 64302f1 | 2016-04-29 15:46:34 -0600 | [diff] [blame] | 22 | show-source = True |
Andreas Jaeger | ecc60ca | 2020-03-28 12:13:24 +0100 | [diff] [blame] | 23 | # 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.) |
| 26 | ignore = W504 |
David Lyle | 64302f1 | 2016-04-29 15:46:34 -0600 | [diff] [blame] | 27 | builtins = _ |
| 28 | exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build |