Skip to content

Commit

Permalink
Exempt README as well. Ref #2395.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Oct 15, 2020
1 parent 2b52be2 commit f0878e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/finalize.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,11 @@ def check_changes():
names.
"""
allowed = 'deprecation', 'breaking', 'change', 'doc', 'misc'
except_ = 'README.rst', '.gitignore'
assert all(
any(key in file.name for key in allowed)
for file in pathlib.Path('changelog.d').iterdir()
if file.name != '.gitignore'
if file.name not in except_
)


Expand Down

0 comments on commit f0878e9

Please sign in to comment.