Skip to content

Commit 7af6f65

Browse files
tnirbenoitc
authored andcommitted
Add restructuredtext_lint to test (#1598)
Signed-off-by: Takuya Noguchi <[email protected]>
1 parent e0f177c commit 7af6f65

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.travis.yml

+4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ matrix:
2020
env: TOXENV=py38-dev
2121
dist: xenial
2222
sudo: true
23+
- python: 3.7
24+
env: TOXENV=docs-lint
25+
dist: xenial
26+
sudo: true
2327
allow_failures:
2428
- env: TOXENV=py38-dev
2529
install: pip install tox

tox.ini

+12
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,15 @@ commands =
2727
tests/test_valid_requests.py
2828
deps =
2929
pylint
30+
31+
[testenv:docs-lint]
32+
whitelist_externals =
33+
rst-lint
34+
bash
35+
grep
36+
deps =
37+
restructuredtext_lint
38+
pygments
39+
commands =
40+
rst-lint README.rst docs/README.rst
41+
bash -c "(set -o pipefail; rst-lint --encoding utf-8 docs/source/*.rst | grep -v 'Unknown interpreted text role\|Unknown directive type'); test $? == 1"

0 commit comments

Comments
 (0)