Skip to content

Commit

Permalink
Fix the check_changes script to allow README&rst (#6050)
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz authored Oct 5, 2021
1 parent 9518bba commit 9262922
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/check_changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from pathlib import Path

ALLOWED_SUFFIXES = [".feature", ".bugfix", ".doc", ".removal", ".misc"]
ALLOWED_SUFFIXES += [f"{suffix}.rst" for suffix in ALLOWED_SUFFIXES]


def get_root(script_path):
Expand All @@ -22,7 +23,7 @@ def main(argv):
changes = root / "CHANGES"
failed = False
for fname in changes.iterdir():
if fname.name in (".gitignore", ".TEMPLATE.rst"):
if fname.name in (".gitignore", ".TEMPLATE.rst", "README.rst"):
continue
if fname.suffix not in ALLOWED_SUFFIXES:
if not failed:
Expand Down

0 comments on commit 9262922

Please sign in to comment.