Skip to content

Commit

Permalink
Fix resolution field validator
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Jan 20, 2022
1 parent 4173039 commit 3d45cb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ repos:
- id: validate-resolution
name: "Validate PEP Resolution field"
language: pygrep
entry: '(?<!\n\n)^Resolution: (?:(?!https:\/\/\S*\n))'
entry: '(?<!\n\n)^Resolution: (?:(?!(https:\/\/\S*|:pep:`[a-zA-Z\d \-<>#]*?`)\n))'
args: ['--multiline']
files: '^pep-\d+\.(rst|txt)$'
types: [text]

0 comments on commit 3d45cb1

Please sign in to comment.