Skip to content

Commit 3d45cb1

Browse files
committed
Fix resolution field validator
1 parent 4173039 commit 3d45cb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ repos:
7272
- id: validate-resolution
7373
name: "Validate PEP Resolution field"
7474
language: pygrep
75-
entry: '(?<!\n\n)^Resolution: (?:(?!https:\/\/\S*\n))'
75+
entry: '(?<!\n\n)^Resolution: (?:(?!(https:\/\/\S*|:pep:`[a-zA-Z\d \-<>#]*?`)\n))'
7676
args: ['--multiline']
7777
files: '^pep-\d+\.(rst|txt)$'
7878
types: [text]

0 commit comments

Comments
 (0)