From 94942e77e7fe05fdbc8e1073773e28b832a4f5e8 Mon Sep 17 00:00:00 2001 From: Philipp A Date: Wed, 21 Dec 2022 09:01:01 +0100 Subject: [PATCH] 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 --- src/doc8/checks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/doc8/checks.py b/src/doc8/checks.py index 4e9ecd0..67c073d 100644 --- a/src/doc8/checks.py +++ b/src/doc8/checks.py @@ -118,6 +118,9 @@ class CheckValidity(ContentCheck): r'^Error in \"code-block\" directive\:\nunknown option: "substitutions".', re.MULTILINE, ), + re.compile( + r'^PEP number must be a number from 0 to 9999; "\d{1,4}#[^"]*" is invalid.' + ), ] def __init__(self, cfg):