Skip to content

Commit

Permalink
Allow PEP links with anchors (#116)
Browse files Browse the repository at this point in the history
* 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 <ssbarnea@redhat.com>
  • Loading branch information
3 people committed Dec 21, 2022
1 parent 428fed3 commit 94942e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/doc8/checks.py
Expand Up @@ -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):
Expand Down

0 comments on commit 94942e7

Please sign in to comment.