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