Lines Matching +full:python3 +full:- +full:docutils
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
9 # TODO: - wrong versions in versionadded/changed
10 # - wrong markup after versionchanged directive
21 # standard docutils ones
23 'contents', 'csv-table', 'danger', 'date', 'default-role', 'epigraph',
25 'important', 'include', 'line-block', 'list-table', 'meta', 'note',
26 'parsed-literal', 'pull-quote', 'raw', 'replace',
27 'restructuredtext-test-directive', 'role', 'rubric', 'sectnum', 'sidebar',
28 'table', 'target-notes', 'tip', 'title', 'topic', 'unicode', 'warning',
33 'cmdoption', 'cmember', 'code-block', 'confval', 'cssclass', 'ctype',
35 'deprecated-removed', 'deprecated(?!-removed)', 'describe', 'directive',
37 'highlight', 'highlightlang', 'impl-detail', 'index', 'literalinclude',
95 ":title-reference:",
110 seems_directive_re = re.compile(r"(?<!\.)\.\. %s([^a-z:]|:(?!:))" % all_directives)
135 role_glued_with_word = re.compile(r"[a-zA-Z]%s" % all_roles)
138 leaked_markup_re = re.compile(r"[a-z]::\s|`|\.\.\s*\w+:")
202 if line[:-1].rstrip(' \t') != line[:-1]:
251 if re.match(r'\.\. \[[0-9]+\] ', line):
285 r"""Check for missing 'backslash-space' between a code sample a letter.
297 yield lno + 1, f"Missing backslash-space between code sample and {token!r}."
299 if token_no == len(tokens) - 1:
307 Usage: %s [-v] [-f] [-s sev] [-i path]* [path]
309 Options: -v verbose (print all checked file names)
310 -f enable checkers that yield many false positives
311 -s sev only show problems with severity >= sev
312 -i path ignore subdir or file path
325 if opt == '-v':
327 elif opt == '-f':
329 elif opt == '-s':
331 elif opt == '-i':
350 ⚠ Please use https://pypi.org/p/sphinx-lint instead.
377 with open(fn, 'r', encoding='utf-8') as f: