Skip to content

python-coincidence/tox-recreate-hook

Repository files navigation

tox-recreate-hook

(experimental) Allows hooks to be defined which are called when recreating a tox testenv.

Docs Documentation Build Status Docs Check Status
Tests Linux Test Status Windows Test Status macOS Test Status Coverage
PyPI PyPI - Package Version PyPI - Supported Python Versions PyPI - Supported Implementations PyPI - Wheel
Activity GitHub last commit GitHub commits since tagged version Maintenance PyPI - Downloads
QA CodeFactor Grade Flake8 Status mypy status
Other License GitHub top language Requirements Status

Installation

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")