use sphinx-build instead of rstlint

This commit is contained in:
Konstantin Manna 2018-07-31 18:16:46 +02:00 committed by Claudiu Popa
parent 9cb0e3aa04
commit 1dffc589bb
2 changed files with 1 additions and 26 deletions

View File

@ -1,24 +0,0 @@
import glob
import os
import restructuredtext_lint
os.chdir('..')
issues = []
print('==Linting reStructuredText files with rst-lint==')
for file in glob.iglob('**/*.rst', recursive=True):
issues.extend(restructuredtext_lint.lint_file(filepath=file))
if issues:
for issue in issues:
print('{type}:{filename}:{line} {message}'.format(
type=issue.type,
filename=issue.source,
line=issue.line,
message=issue.message.replace('\n', ' ')))
print('reStructuredText linter found {} issues in rst files!'.format(
len(issues)))
exit(1)

View File

@ -72,5 +72,4 @@ commands =
python ./exts/pylint_features.py
rm -f extensions.rst
python ./exts/pylint_extensions.py
sphinx-build -b html -d _build/doctrees . _build/html
python ./check_rst_files.py
sphinx-build -W -b html -d _build/doctrees . _build/html