From d0af1a0428ce91df1204e2c00387e0b4f8afc6d3 Mon Sep 17 00:00:00 2001 From: Ifat Afek Date: Thu, 7 Jun 2018 09:24:04 +0000 Subject: [PATCH] Add .rst files check to pep8 Errors in README.rst prevent the package from being registered in Pypi. We would like pep8 to fail in these cases. For more details, see: http://lists.openstack.org/pipermail/openstack-dev/2018-June/131233.html Change-Id: Ic6f92abd09740372a829b9a58902e1c8f63b5bcc --- doc/requirements.txt | 1 + lower-constraints.txt | 1 + tox.ini | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/doc/requirements.txt b/doc/requirements.txt index 5a979cfa8..e5992b1d7 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -5,3 +5,4 @@ oslo.config>=5.2.0 # Apache-2.0 openstackdocstheme>=1.18.1 # Apache-2.0 sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD reno>=2.7.0 # Apache-2.0 +docutils>=0.11 # OSI-Approved Open Source, Public Domain diff --git a/lower-constraints.txt b/lower-constraints.txt index f53bfab1d..eaf0161e2 100644 --- a/lower-constraints.txt +++ b/lower-constraints.txt @@ -140,3 +140,4 @@ WebTest==2.0.29 Werkzeug==0.14.1 wrapt==1.10.11 futures==3.0.0 +docutils==0.11 diff --git a/tox.ini b/tox.ini index f69209d38..fde43e57b 100644 --- a/tox.ini +++ b/tox.ini @@ -21,7 +21,12 @@ passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY [testenv:pep8] basepython = python3 +deps = -r{toxinidir}/doc/requirements.txt + -c{toxinidir}/lower-constraints.txt + -r{toxinidir}/test-requirements.txt + -r{toxinidir}/requirements.txt commands = flake8 + python setup.py check --restructuredtext --strict [testenv:genconfig] basepython = python3