Jim Rollenhagen | 4f8f229 | 2016-11-18 06:22:18 -0500 | [diff] [blame] | 1 | [tox] |
Riccardo Pittau | c4ad6e2 | 2021-06-15 10:04:18 +0200 | [diff] [blame] | 2 | minversion = 3.18.0 |
Iury Gregory Melo Ferreira | 41a016b | 2020-03-20 19:10:15 +0100 | [diff] [blame] | 3 | envlist = pep8 |
Riccardo Pittau | 7825e28 | 2019-12-23 11:20:52 +0100 | [diff] [blame] | 4 | ignore_basepython_conflict=true |
Jim Rollenhagen | 4f8f229 | 2016-11-18 06:22:18 -0500 | [diff] [blame] | 5 | |
| 6 | [testenv] |
Ghanshyam | e83d220 | 2020-01-23 18:03:56 -0600 | [diff] [blame] | 7 | basepython = python3 |
Jim Rollenhagen | 4f8f229 | 2016-11-18 06:22:18 -0500 | [diff] [blame] | 8 | usedevelop = True |
Jim Rollenhagen | 4f8f229 | 2016-11-18 06:22:18 -0500 | [diff] [blame] | 9 | setenv = |
| 10 | VIRTUAL_ENV={envdir} |
| 11 | PYTHONWARNINGS=default::DeprecationWarning |
Andreas Jaeger | 7e2d6f2 | 2020-05-03 11:18:36 +0200 | [diff] [blame] | 12 | deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} |
chenke | 2494c8a | 2019-06-17 21:49:34 +0800 | [diff] [blame] | 13 | -r{toxinidir}/test-requirements.txt |
Iury Gregory Melo Ferreira | 41a016b | 2020-03-20 19:10:15 +0100 | [diff] [blame] | 14 | commands = stestr run --slowest {posargs} |
Jim Rollenhagen | 4f8f229 | 2016-11-18 06:22:18 -0500 | [diff] [blame] | 15 | |
| 16 | [testenv:pep8] |
Riccardo Pittau | 13de53a | 2021-01-23 18:46:46 +0100 | [diff] [blame] | 17 | deps = |
Jay Faulkner | 1670987 | 2023-04-21 12:39:21 -0700 | [diff] [blame] | 18 | hacking~=6.0.0 # Apache-2.0 |
Riccardo Pittau | 13de53a | 2021-01-23 18:46:46 +0100 | [diff] [blame] | 19 | flake8-import-order>=0.17.1 # LGPLv3 |
Riccardo Pittau | 8798275 | 2021-11-25 15:12:59 +0100 | [diff] [blame] | 20 | pycodestyle>=2.0.0,<3.0.0 # MIT |
Jim Rollenhagen | 4f8f229 | 2016-11-18 06:22:18 -0500 | [diff] [blame] | 21 | commands = flake8 {posargs} |
| 22 | |
| 23 | [testenv:venv] |
| 24 | commands = {posargs} |
| 25 | |
| 26 | [testenv:cover] |
Iury Gregory Melo Ferreira | 41a016b | 2020-03-20 19:10:15 +0100 | [diff] [blame] | 27 | setenv = |
| 28 | {[testenv]setenv} |
| 29 | PYTHON=coverage run --source ironic_tempest_plugin --parallel-mode |
| 30 | commands = |
| 31 | stestr run {posargs} |
| 32 | coverage combine |
Riccardo Pittau | 13de53a | 2021-01-23 18:46:46 +0100 | [diff] [blame] | 33 | coverage html -d cover |
Iury Gregory Melo Ferreira | 41a016b | 2020-03-20 19:10:15 +0100 | [diff] [blame] | 34 | coverage xml -o cover/coverage.xml |
Jim Rollenhagen | 4f8f229 | 2016-11-18 06:22:18 -0500 | [diff] [blame] | 35 | |
| 36 | [testenv:docs] |
Andreas Jaeger | 7e2d6f2 | 2020-05-03 11:18:36 +0200 | [diff] [blame] | 37 | deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} |
| 38 | -r{toxinidir}/doc/requirements.txt |
| 39 | commands = sphinx-build -W -b html doc/source doc/build/html |
Jim Rollenhagen | 4f8f229 | 2016-11-18 06:22:18 -0500 | [diff] [blame] | 40 | |
Kaifeng Wang | 6f4e2a3 | 2019-06-14 17:43:14 +0800 | [diff] [blame] | 41 | [testenv:pdf-docs] |
Andreas Jaeger | 7e2d6f2 | 2020-05-03 11:18:36 +0200 | [diff] [blame] | 42 | deps = {[testenv:docs]deps} |
Riccardo Pittau | c4ad6e2 | 2021-06-15 10:04:18 +0200 | [diff] [blame] | 43 | allowlist_externals = make |
Kaifeng Wang | 6f4e2a3 | 2019-06-14 17:43:14 +0800 | [diff] [blame] | 44 | commands = sphinx-build -b latex doc/source doc/build/pdf |
| 45 | make -C doc/build/pdf |
| 46 | |
Jim Rollenhagen | 4f8f229 | 2016-11-18 06:22:18 -0500 | [diff] [blame] | 47 | [testenv:debug] |
| 48 | commands = oslo_debug_helper {posargs} |
| 49 | |
| 50 | [flake8] |
Riccardo Pittau | 441c506 | 2020-03-30 15:06:28 +0200 | [diff] [blame] | 51 | # [W503] Line break occurred before a binary operator. Conflicts with W504. |
Riccardo Pittau | 7f71d49 | 2020-08-03 17:39:41 +0200 | [diff] [blame] | 52 | ignore = W503 |
Jim Rollenhagen | 4f8f229 | 2016-11-18 06:22:18 -0500 | [diff] [blame] | 53 | show-source = True |
| 54 | builtins = _ |
| 55 | exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build |
Riccardo Pittau | 1609869 | 2020-04-21 17:06:10 +0200 | [diff] [blame] | 56 | import-order-style = pep8 |
| 57 | application-import-names = ironic_tempest_plugin |
| 58 | filename = *.py |
| 59 | |