@@ -103,15 +103,15 @@ repos:
103
103
- id : validate-author
104
104
name :
" 'Author' must be list of 'Name <[email protected] >, ...'"
105
105
language : pygrep
106
- entry : ' (?<=\n)Author:(?:(?!((( +|\n {8})[^!#$%&()*+,/:;<=>?@\[\\\]\^_`{|}~]+( <[\w!#$%&'' *+\-/=?^_{|}~.]+(@| at )[\w\-.]+\.[A-Za-z0-9]+>)?)(,|(?=\n[^ ])))+\n(?=[A-Z])))'
106
+ entry : ' (?<=\n)Author:(?:(?!((( +|\n {1, 8})[^!#$%&()*+,/:;<=>?@\[\\\]\^_`{|}~]+( <[\w!#$%&'' *+\-/=?^_{|}~.]+(@| at )[\w\-.]+\.[A-Za-z0-9]+>)?)(,|(?=\n[^ ])))+\n(?=[A-Z])))'
107
107
args : [--multiline]
108
108
files : ' ^pep-\d+\.rst$'
109
109
types : [text]
110
110
111
111
- id : validate-author-legacy
112
112
name : " Legacy 'Author' must be a list of names/emails"
113
113
language : pygrep
114
- entry : ' (?<=\n)Author:(?:(?!((((( +|\n {8})[^!#$%&()*+,/:;<=>?@\[\\\]\^_`{|}~]+( <[\w!#$%&'' *+\-/=?^_{|}~.]+(@| at )[\w\-.]+\.[A-Za-z0-9]+>)?)(,|(?=\n[^ ])))+)|(((( +|\n {8})[\w!#$%&'' *+\-/=?^_{|}~.]+(@| at )[\w\-.]+\.[A-Za-z0-9]+) \(([^!#$%&()*+,/:;<=>?@\[\\\]\^_`{|}~]+)\)(,|(?=\n[^ ])))+))\n(?=[A-Z])))'
114
+ entry : ' (?<=\n)Author:(?:(?!((((( +|\n {1, 8})[^!#$%&()*+,/:;<=>?@\[\\\]\^_`{|}~]+( <[\w!#$%&'' *+\-/=?^_{|}~.]+(@| at )[\w\-.]+\.[A-Za-z0-9]+>)?)(,|(?=\n[^ ])))+)|(((( +|\n {1, 8})[\w!#$%&'' *+\-/=?^_{|}~.]+(@| at )[\w\-.]+\.[A-Za-z0-9]+) \(([^!#$%&()*+,/:;<=>?@\[\\\]\^_`{|}~]+)\)(,|(?=\n[^ ])))+))\n(?=[A-Z])))'
115
115
args : [--multiline]
116
116
files : ' ^pep-\d+\.(rst|txt)$'
117
117
types : [text]
@@ -183,7 +183,7 @@ repos:
183
183
- id : validate-post-history
184
184
name : " 'Post-History' must be '`DD-mmm-YYYY <Thread URL>`__, ...'"
185
185
language : pygrep
186
- entry : ' (?<=\n)Post-History:(?:(?! ?\n|((( +|\n {14})(([0-2][0-9]|(3[01]))-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(199[0-9]|20[0-9][0-9])|`([0-2][0-9]|(3[01]))-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(199[0-9]|20[0-9][0-9]) <https://((discuss\.python\.org/t/([\w\-]+/)?\d+/?)|(mail\.python\.org/pipermail/[\w\-]+/\d{4}-[A-Za-z]+/[A-Za-z0-9]+\.html)|(mail\.python\.org/archives/list/[\w\-]+@python\.org/thread/[A-Za-z0-9]+/?))>`__)(,|(?=\n[^ ])))+\n(?=[A-Z\n]))))'
186
+ entry : ' (?<=\n)Post-History:(?:(?! ?\n|((( +|\n {1, 14})(([0-2][0-9]|(3[01]))-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(199[0-9]|20[0-9][0-9])|`([0-2][0-9]|(3[01]))-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(199[0-9]|20[0-9][0-9]) <https://((discuss\.python\.org/t/([\w\-]+/)?\d+/?)|(mail\.python\.org/pipermail/[\w\-]+/\d{4}-[A-Za-z]+/[A-Za-z0-9]+\.html)|(mail\.python\.org/archives/list/[\w\-]+@python\.org/thread/[A-Za-z0-9]+/?))>`__)(,|(?=\n[^ ])))+\n(?=[A-Z\n]))))'
187
187
args : [--multiline]
188
188
files : ' ^pep-\d+\.(rst|txt)$'
189
189
types : [text]
0 commit comments