Add doc8 to pep8 check for kosmos project

This patch adds a doc8 check of .rst files to the current pep8 check.
It includes fixes to the .rst files that didn't pass the check.

Change-Id: I550f327370d64135dd15bac760781783506238bd
This commit is contained in:
Hoang Trung Hieu 2018-01-03 09:31:25 +07:00 committed by Nguyen Van Trung
parent 0bf5f1aea3
commit 5c4ee4d258
2 changed files with 5 additions and 1 deletions

View File

@ -12,6 +12,7 @@ oslotest>=3.2.0 # Apache-2.0
testrepository>=0.0.18 # Apache-2.0/BSD
testscenarios>=0.4 # Apache-2.0/BSD
testtools>=2.2.0 # MIT
doc8>=0.6.0 # Apache-2.0
# Release note documentation
reno>=2.5.0 # Apache-2.0

View File

@ -14,7 +14,7 @@ whitelist_externals = sh
[testenv:pep8]
commands = sh tools/pretty_flake8.sh
doc8 {posargs}
[testenv:venv]
commands = {posargs}
@ -35,6 +35,9 @@ commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasen
[hacking]
import_exceptions = kosmos._i18n
[doc8]
ignore-path = .venv,.git,.tox,*kosmos/locale*,*lib/python*,kosmos.egg*,doc/build,doc/source/api
[flake8]
show-source = True
ignore = H302,H306,H402,H404,H405,H904