Move doc8 into pep8 target
This is the same kind of check and this makes sure that docs error are caught by the gate. Otherwise, the docs are built with tox -e venv which does not call doc8 and errors are missed. Change-Id: I33559cb9b7bf637c339f54ed99b49da39b89e75c
This commit is contained in:
parent
2314ae5bfc
commit
8dbbe54c2c
|
@ -83,7 +83,6 @@ test =
|
|||
testtools>=1.4.0
|
||||
|
||||
doc =
|
||||
doc8
|
||||
sphinx!=1.2.0,!=1.3b1,>=1.1.2
|
||||
oslosphinx>=2.5.0 # Apache-2.0
|
||||
openstack-doc-tools>=1.0.1
|
||||
|
|
3
tox.ini
3
tox.ini
|
@ -17,7 +17,9 @@ commands = pifpaf run gnocchi -- python setup.py test --slowest --testr-args='{p
|
|||
|
||||
[testenv:pep8]
|
||||
deps = hacking<0.13,>=0.12
|
||||
doc8>=0.8.0
|
||||
commands = flake8
|
||||
doc8 --ignore-path doc/source/gnocchi.rst --ignore-path-errors doc/source/shell.rst;D000 doc/source
|
||||
|
||||
[testenv:venv]
|
||||
deps = .[test,doc]
|
||||
|
@ -31,7 +33,6 @@ deps = .[test,doc]
|
|||
commands =
|
||||
rm -rf doc/source/ref
|
||||
python setup.py build_sphinx
|
||||
doc8 --ignore-path doc/source/gnocchi.rst doc/source
|
||||
|
||||
[testenv:docs-gnocchi.xyz]
|
||||
deps = .[test,doc]
|
||||
|
|
Loading…
Reference in New Issue