diff --git a/tox.ini b/tox.ini index 28bc488f9..df5d96bdf 100644 --- a/tox.ini +++ b/tox.ini @@ -141,7 +141,9 @@ commands = {[testenv:docs]commands} commands = bandit -c bandit.yaml -r nova -n 5 -ll [testenv:releasenotes] -commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html +commands = + rm -rf releasenotes/build + sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html [flake8] # E125 is deliberately excluded. See https://github.com/jcrocholl/pep8/issues/126