mirror of
https://fuchsia.googlesource.com/third_party/github.com/pylint-dev/pylint
synced 2024-09-21 07:58:04 +00:00
use sphinx-build instead of rstlint
This commit is contained in:
parent
9cb0e3aa04
commit
1dffc589bb
|
@ -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)
|
Loading…
Reference in New Issue
Block a user