From b18cde2dc855490c7bea28870c2a5cdcf6a6c6f4 Mon Sep 17 00:00:00 2001 From: Witold Bedyk Date: Wed, 18 Jul 2018 16:08:54 +0200 Subject: [PATCH] Add check for rst syntax Creating the release would fail if the syntax of README.rst is not correct. Let's check it in the pep8 environment. Story: 2002163 Task: 23044 Change-Id: I2856622af08cec7c801959ca85f4c77252263db5 --- lower-constraints.txt | 1 + test-requirements.txt | 1 + tox.ini | 1 + 3 files changed, 3 insertions(+) diff --git a/lower-constraints.txt b/lower-constraints.txt index da1395fd..7c2a5ded 100644 --- a/lower-constraints.txt +++ b/lower-constraints.txt @@ -3,6 +3,7 @@ Babel==2.3.4 bandit==1.4.0 coverage==4.0 debtcollector==1.2.0 +docutils==0.11 extras==1.0.0 fixtures==3.0.0 flake8==2.5.5 diff --git a/test-requirements.txt b/test-requirements.txt index 2f12d63f..9477e67c 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -16,3 +16,4 @@ requests-mock>=1.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 +docutils>=0.11 diff --git a/tox.ini b/tox.ini index 34bce18a..4085c736 100644 --- a/tox.ini +++ b/tox.ini @@ -68,6 +68,7 @@ basepython = python3 commands = {[testenv:flake8]commands} {[testenv:bandit]commands} + python setup.py check --restructuredtext --strict [testenv:venv] basepython = python3