We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8565f8e commit 801c90eCopy full SHA for 801c90e
test.py
@@ -10,6 +10,8 @@
10
for name in files:
11
f = root / name
12
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.
15
if m and f.parent.name not in m.group("tags"):
16
print(f"Tag from path must be repeated in Tags metadata: {f}")
17
sys.exit(1)
0 commit comments