TrivialFix for flake8 and docs build in tox.ini
1. exclude "build" in flake8 section. 2. to ensure the old files are not left over when running these document builds. Change-Id: Ia5590b7816b36351559c692eebfecb3c8e6fd1a3
This commit is contained in:
parent
da9d05c55a
commit
8bd00e3ba0
7
tox.ini
7
tox.ini
@ -138,6 +138,7 @@ commands = {posargs}
|
|||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
commands =
|
commands =
|
||||||
|
rm -rf doc/build
|
||||||
python setup.py build_sphinx {posargs}
|
python setup.py build_sphinx {posargs}
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
@ -159,12 +160,14 @@ import_exceptions = tempest.services
|
|||||||
# E129 skipped because it is too limiting when combined with other rules
|
# E129 skipped because it is too limiting when combined with other rules
|
||||||
ignore = E125,E123,E129
|
ignore = E125,E123,E129
|
||||||
show-source = True
|
show-source = True
|
||||||
exclude = .git,.venv,.tox,dist,doc,*egg
|
exclude = .git,.venv,.tox,dist,doc,*egg,build
|
||||||
enable-extensions = H106,H203,H904
|
enable-extensions = H106,H203,H904
|
||||||
import-order-style = pep8
|
import-order-style = pep8
|
||||||
|
|
||||||
[testenv:releasenotes]
|
[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
|
||||||
|
|
||||||
[testenv:pip-check-reqs]
|
[testenv:pip-check-reqs]
|
||||||
# Do not install test-requirements as that will pollute the virtualenv for
|
# Do not install test-requirements as that will pollute the virtualenv for
|
||||||
|
Loading…
Reference in New Issue
Block a user