From ca466473eba71dfcf9d5517f9354b618e4d7afd9 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Wed, 30 Jun 2021 11:34:24 +0200 Subject: [PATCH] bpo-42238: rstlint: Add two new checks. --- Doc/tools/rstlint.py | 99 ++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 91 insertions(+), 8 deletions(-) diff --git a/Doc/tools/rstlint.py b/Doc/tools/rstlint.py index cbcb8eb801b135..c9bff80995bfd3 100755 --- a/Doc/tools/rstlint.py +++ b/Doc/tools/rstlint.py @@ -42,10 +42,89 @@ 'versionchanged' ] -all_directives = '(' + '|'.join(directives) + ')' -seems_directive_re = re.compile(r'(?