summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2017-12-25 04:28:29 +0000
committerGerrit Code Review <review@openstack.org>2017-12-25 04:28:29 +0000
commitc4ce1ab56cbbd8e7f2962e9578b19059244c825f (patch)
treed9af551b379606bb241f4ab5b34fdec4612573cb
parent6e7eb0fa01f28cde77edaf6719ee00469d6ae479 (diff)
parent6927cc4401e01021459aa94a51099af84350763c (diff)
downloadtaskflow-c4ce1ab56cbbd8e7f2962e9578b19059244c825f.tar.gz
Merge "Add doc8 to pep8 environment"queens-em3.1.0
-rw-r--r--setup.cfg1
-rw-r--r--tox.ini11
2 files changed, 11 insertions, 1 deletions
diff --git a/setup.cfg b/setup.cfg
index 2c89800..8f17cc4 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -80,6 +80,7 @@ test =
testtools>=2.2.0 # MIT
testscenarios>=0.4 # Apache-2.0/BSD
doc8>=0.6.0 # Apache-2.0
+ sphinx>=1.6.2 # BSD
[nosetests]
cover-erase = true
diff --git a/tox.ini b/tox.ini
index 7ea15bd..8622c3a 100644
--- a/tox.ini
+++ b/tox.ini
@@ -30,7 +30,9 @@ deps = {[testenv]deps}
commands = {toxinidir}/tools/update_states.sh
[testenv:pep8]
-commands = flake8 {posargs}
+commands =
+ flake8 {posargs}
+ doc8 doc/source
[testenv:pylint]
deps = {[testenv]deps}
@@ -54,6 +56,13 @@ import_exceptions = six.moves
taskflow.test.mock
unittest.mock
+[doc8]
+# Settings for doc8:
+# Ignore doc/source/user/history.rst, it includes generated ChangeLog
+# file that fails with "D000 Inline emphasis start-string without
+# end-string."
+ignore-path = doc/*/target,doc/*/build*
+
[testenv:py27]
deps = .[test,workers,zookeeper,database,redis,eventlet]
-r{toxinidir}/doc/requirements.txt