Nishant Kumar | 9d06ea9 | 2017-07-20 12:13:03 -0400 | [diff] [blame] | 1 | [tox] |
tushargite96 | 040eb50 | 2021-06-29 15:24:25 +0530 | [diff] [blame] | 2 | minversion = 3.18.0 |
Sean McGinnis | 44fed34 | 2017-12-01 16:44:57 -0600 | [diff] [blame] | 3 | envlist = pep8 |
Nishant Kumar | 9d06ea9 | 2017-07-20 12:13:03 -0400 | [diff] [blame] | 4 | skipsdist = True |
Brian Rosmaita | e0622ed | 2020-01-16 15:15:44 -0500 | [diff] [blame] | 5 | # this allows tox to infer the base python from the environment name |
| 6 | # and override any basepython configured in this file |
| 7 | ignore_basepython_conflict=true |
Nishant Kumar | 9d06ea9 | 2017-07-20 12:13:03 -0400 | [diff] [blame] | 8 | |
| 9 | [testenv] |
Brian Rosmaita | e0622ed | 2020-01-16 15:15:44 -0500 | [diff] [blame] | 10 | basepython = python3 |
Nishant Kumar | 9d06ea9 | 2017-07-20 12:13:03 -0400 | [diff] [blame] | 11 | usedevelop = True |
Nishant Kumar | 9d06ea9 | 2017-07-20 12:13:03 -0400 | [diff] [blame] | 12 | setenv = |
| 13 | VIRTUAL_ENV={envdir} |
| 14 | PYTHONWARNINGS=default::DeprecationWarning |
Luigi Toscano | 7c47222 | 2021-02-09 22:47:08 +0100 | [diff] [blame] | 15 | OS_LOG_CAPTURE={env:OS_LOG_CAPTURE:true} |
| 16 | OS_STDOUT_CAPTURE={env:OS_STDOUT_CAPTURE:true} |
| 17 | OS_STDERR_CAPTURE={env:OS_STDERR_CAPTURE:true} |
Andreas Jaeger | 79d1390 | 2020-05-03 11:04:54 +0200 | [diff] [blame] | 18 | deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} |
chenke | 98e029d | 2019-06-20 21:36:28 +0800 | [diff] [blame] | 19 | -r{toxinidir}/test-requirements.txt |
Luigi Toscano | 7c47222 | 2021-02-09 22:47:08 +0100 | [diff] [blame] | 20 | commands = stestr run --slowest {posargs} |
Nishant Kumar | 9d06ea9 | 2017-07-20 12:13:03 -0400 | [diff] [blame] | 21 | |
| 22 | [testenv:pep8] |
| 23 | commands = flake8 {posargs} |
| 24 | |
| 25 | [testenv:venv] |
| 26 | commands = {posargs} |
| 27 | |
Nishant Kumar | 9d06ea9 | 2017-07-20 12:13:03 -0400 | [diff] [blame] | 28 | [flake8] |
| 29 | # E123, E125 skipped as they are invalid PEP-8. |
Andreas Jaeger | 79d1390 | 2020-05-03 11:04:54 +0200 | [diff] [blame] | 30 | # W503 line break before binary operator |
| 31 | # W504 line break after binary operator |
Rajat Dhasmana | df4f947 | 2021-01-29 11:41:02 -0500 | [diff] [blame] | 32 | # H101 include name with TODO |
| 33 | # reason: no real benefit |
Nishant Kumar | 9d06ea9 | 2017-07-20 12:13:03 -0400 | [diff] [blame] | 34 | show-source = True |
Rajat Dhasmana | df4f947 | 2021-01-29 11:41:02 -0500 | [diff] [blame] | 35 | ignore = E123,E125,W503,W504,H101 |
Nishant Kumar | 9d06ea9 | 2017-07-20 12:13:03 -0400 | [diff] [blame] | 36 | builtins = _ |
| 37 | exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build |