mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Add restructuredtext_lint to test (#1598)
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
This commit is contained in:
parent
e0f177ca45
commit
7af6f651c0
@ -20,6 +20,10 @@ matrix:
|
||||
env: TOXENV=py38-dev
|
||||
dist: xenial
|
||||
sudo: true
|
||||
- python: 3.7
|
||||
env: TOXENV=docs-lint
|
||||
dist: xenial
|
||||
sudo: true
|
||||
allow_failures:
|
||||
- env: TOXENV=py38-dev
|
||||
install: pip install tox
|
||||
|
||||
12
tox.ini
12
tox.ini
@ -27,3 +27,15 @@ commands =
|
||||
tests/test_valid_requests.py
|
||||
deps =
|
||||
pylint
|
||||
|
||||
[testenv:docs-lint]
|
||||
whitelist_externals =
|
||||
rst-lint
|
||||
bash
|
||||
grep
|
||||
deps =
|
||||
restructuredtext_lint
|
||||
pygments
|
||||
commands =
|
||||
rst-lint README.rst docs/README.rst
|
||||
bash -c "(set -o pipefail; rst-lint --encoding utf-8 docs/source/*.rst | grep -v 'Unknown interpreted text role\|Unknown directive type'); test $? == 1"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user