(experimental) Allows hooks to be defined which are called when recreating a tox testenv.
Docs | |
---|---|
Tests | |
PyPI | |
Activity | |
QA | |
Other |
tox-recreate-hook
can be installed from PyPI.
To install with pip
:
$ python -m pip install tox-recreate-hook
Example configuration
[testenv:docs]
setenv = SHOW_TODOS = 1
basepython = python3.8
changedir = {toxinidir}/doc-source
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/doc-source/requirements.txt
commands = sphinx-build -M html . ./build {posargs}
recreate_hook = builtin.rmdir("{toxinidir}/doc-source/build")