From 7434266e8d3a33357a47bc9026c7a031f6cd6bf6 Mon Sep 17 00:00:00 2001 From: Nguyen Van Trung Date: Wed, 13 Dec 2017 07:36:20 +0700 Subject: [PATCH] Add doc8 to pep8 check for panko 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: Iad93921d7b5f9ee668fa1b8c518c5e7f55a4fa49 Co-authored-By: Hoang Trung Hieu --- tox.ini | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tox.ini b/tox.ini index cc4d8c85..63c27bbb 100644 --- a/tox.ini +++ b/tox.ini @@ -69,7 +69,9 @@ commands = [testenv:pep8] deps = hacking<0.13,>=0.12.0 + doc8 commands = flake8 + doc8 {posargs} [testenv:releasenotes] commands = sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html @@ -107,6 +109,10 @@ commands = pifpaf --debug run postgresql oslo_debug_helper {posargs} setenv = OS_TEST_PATH=panko/tests/functional commands = pifpaf --debug run elasticsearch oslo_debug_helper {posargs} +[doc8] +ignore = D000 +ignore-path = .venv,.git,.tox,*panko/locale*,*lib/python*,panko.egg*,doc/build,doc/source/api,releasenotes/* + [flake8] ignore = exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build