Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1ba9469

Browse files
pitrouncoghlan
authored andcommitted
Update make patchcheck for blurb and NEWS.d (#2381)
1 parent 70cb187 commit 1ba9469

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Tools/scripts/patchcheck.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,11 @@ def credit_given(file_paths):
192192
return os.path.join('Misc', 'ACKS') in file_paths
193193

194194

195-
@status("Misc/NEWS updated", modal=True)
195+
@status("Misc/NEWS.d updated with `blurb`", modal=True)
196196
def reported_news(file_paths):
197-
"""Check if Misc/NEWS has been changed."""
198-
return os.path.join('Misc', 'NEWS') in file_paths
197+
"""Check if Misc/NEWS.d has been changed."""
198+
return any(p.startswith(os.path.join('Misc', 'NEWS.d', 'next'))
199+
for p in file_paths)
199200

200201
@status("configure regenerated", modal=True, info=str)
201202
def regenerated_configure(file_paths):
@@ -241,8 +242,7 @@ def main():
241242
c_files = [fn for fn in file_paths if fn.endswith(('.c', '.h'))]
242243
doc_files = [fn for fn in file_paths if fn.startswith('Doc') and
243244
fn.endswith(('.rst', '.inc'))]
244-
misc_files = {os.path.join('Misc', 'ACKS'), os.path.join('Misc', 'NEWS')}\
245-
& set(file_paths)
245+
misc_files = {p for p in file_paths if p.startswith('Misc')}
246246
# PEP 8 whitespace rules enforcement.
247247
normalize_whitespace(python_files)
248248
# C rules enforcement.

0 commit comments

Comments
 (0)