Fix resolution field validator
This commit is contained in:
parent
06858cd621
commit
cf5b6b1649
|
@ -72,7 +72,7 @@ repos:
|
||||||
- id: validate-resolution
|
- id: validate-resolution
|
||||||
name: "Validate PEP Resolution field"
|
name: "Validate PEP Resolution field"
|
||||||
language: pygrep
|
language: pygrep
|
||||||
entry: '(?<!\n\n)^Resolution: (?:(?!https:\/\/\S*\n))'
|
entry: '(?<!\n\n)^Resolution: (?:(?!(https:\/\/\S*|:pep:`[a-zA-Z\d \-<>#]*?`)\n))'
|
||||||
args: ['--multiline']
|
args: ['--multiline']
|
||||||
files: '^pep-\d+\.(rst|txt)$'
|
files: '^pep-\d+\.(rst|txt)$'
|
||||||
types: [text]
|
types: [text]
|
||||||
|
|
Loading…
Reference in New Issue