diff --git a/scripts/check_style.py b/scripts/check_style.py index a9e1779..217f24b 100755 --- a/scripts/check_style.py +++ b/scripts/check_style.py @@ -55,6 +55,16 @@ DATE_IN_NAME = re.compile(r"(? None: if "_" in core: report.add("naming", f"{rel}: use hyphens, not underscores (section 7)") - if DATE_IN_NAME.search(core) and "/adr/" not in rel: + if DATE_IN_NAME.search(core) and not rel.startswith(DATE_BEARING_PATHS): report.add("naming", f"{rel}: dates belong in history, not file names (section 7)")