Skip to content

Commit 801c90e

Browse files
Update test.py
1 parent 8565f8e commit 801c90e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
for name in files:
1111
f = root / name
1212
m = re.search(r"^Tags: (?P<tags>.*)$", f.read_text(), re.MULTILINE)
13+
# Tags header overrides the path tag, so enforce that the path tag is
14+
# included in the header for consistency.
1315
if m and f.parent.name not in m.group("tags"):
1416
print(f"Tag from path must be repeated in Tags metadata: {f}")
1517
sys.exit(1)

0 commit comments

Comments
 (0)