Skip to content

Commit 94942e7

Browse files
flying-sheeppre-commit-ci[bot]ssbarnea
authored
Allow PEP links with anchors (#116)
* Allow PEP links with anchors * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Sorin Sbarnea <[email protected]>
1 parent 428fed3 commit 94942e7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/doc8/checks.py

+3
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ class CheckValidity(ContentCheck):
118118
r'^Error in \"code-block\" directive\:\nunknown option: "substitutions".',
119119
re.MULTILINE,
120120
),
121+
re.compile(
122+
r'^PEP number must be a number from 0 to 9999; "\d{1,4}#[^"]*" is invalid.'
123+
),
121124
]
122125

123126
def __init__(self, cfg):

0 commit comments

Comments
 (0)