Change the doc8 check mode

In Ib226cbf9fc1fb7d3146083d65c44d8e0b80e2a7b we were introduced the doc8
check, but the configuration in cyborg/tox.ini is incorrect. This patch
will combine the doc8 check in [testenv:docs] to fix 'tox -e doc8' error.

Story: 2008084
Task: 40785

Change-Id: I9eb30de1407022a31086caab265e5e51e3d06bf9
This commit is contained in:
zhangbailin 2020-08-29 16:55:12 +08:00 committed by Brin Zhang
parent 271542b97b
commit 14d45468ce
3 changed files with 7 additions and 17 deletions

View File

@ -1,6 +0,0 @@
# The order of packages is significant, because pip processes them in the order
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
pbr>=2.0 # Apache-2.0
doc8>=0.8.0

View File

@ -8,3 +8,5 @@ coverage>=4.0,!=4.4 # Apache-2.0
sphinx>=2.0.0,!=2.1.0 # BSD
stestr>=1.0.0 # Apache-2.0
openstackdocstheme>=2.2.1 # Apache-2.0
pbr>=2.0 # Apache-2.0
doc8>=0.8.0 # Apache-2.0

16
tox.ini
View File

@ -13,16 +13,15 @@ setenv =
OS_STDOUT_CAPTURE=1
OS_STDERR_CAPTURE=1
OS_TEST_TIMEOUT=60
deps = -r{toxinidir}/doc/requirements.txt
deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/doc/requirements.txt
commands = stestr run {posargs}
[testenv:pep8]
deps =
-r{toxinidir}/doc/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
flake8 {posargs}
doc8 specs doc/source
doc8 specs/
[testenv:venv]
commands = {posargs}
@ -39,6 +38,7 @@ commands =
[testenv:docs]
commands = sphinx-build -W -b html doc/source doc/build/html
doc8 --ignore D001 doc/
[testenv:releasenotes]
commands =
@ -54,9 +54,3 @@ show-source = True
ignore = E123,E125
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
[testenv:doc8]
deps =
-r{toxinidir}/requirements.txt
doc8
commands = doc8 specs doc/source