| [tox] |
| minversion = 3.18.0 |
| envlist = pep8 |
| ignore_basepython_conflict=true |
| |
| [testenv] |
| basepython = python3 |
| usedevelop = True |
| setenv = |
| VIRTUAL_ENV={envdir} |
| PYTHONWARNINGS=default::DeprecationWarning |
| deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} |
| -r{toxinidir}/test-requirements.txt |
| commands = stestr run --slowest {posargs} |
| |
| [testenv:pep8] |
| deps = |
| hacking>=4.1.0,<5.0.0 # Apache-2.0 |
| flake8-import-order>=0.17.1 # LGPLv3 |
| pycodestyle>=2.0.0,<3.0.0 # MIT |
| commands = flake8 {posargs} |
| |
| [testenv:venv] |
| commands = {posargs} |
| |
| [testenv:cover] |
| setenv = |
| {[testenv]setenv} |
| PYTHON=coverage run --source ironic_tempest_plugin --parallel-mode |
| commands = |
| stestr run {posargs} |
| coverage combine |
| coverage html -d cover |
| coverage xml -o cover/coverage.xml |
| |
| [testenv:docs] |
| deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} |
| -r{toxinidir}/doc/requirements.txt |
| commands = sphinx-build -W -b html doc/source doc/build/html |
| |
| [testenv:pdf-docs] |
| deps = {[testenv:docs]deps} |
| allowlist_externals = make |
| commands = sphinx-build -b latex doc/source doc/build/pdf |
| make -C doc/build/pdf |
| |
| [testenv:debug] |
| commands = oslo_debug_helper {posargs} |
| |
| [flake8] |
| # [W503] Line break occurred before a binary operator. Conflicts with W504. |
| ignore = W503 |
| show-source = True |
| builtins = _ |
| exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build |
| import-order-style = pep8 |
| application-import-names = ironic_tempest_plugin |
| filename = *.py |
| |