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 e41c6a6 commit 536bdc2Copy full SHA for 536bdc2
test.py
@@ -9,7 +9,7 @@
9
for root, dirs, files in NEWS.walk():
10
for name in files:
11
f = root / name
12
- m = re.search(r"^Tags: (?P<tags>.*)$", f.read_text())
+ m = re.search(r"^Tags: (?P<tags>.*)$", f.read_text(), re.MULTILINE)
13
if m and f.parent.name not in m.group("tags"):
14
print(f"Tag from path must be repeated in Tags metadata: {f}")
15
sys.exit(1)
0 commit comments