Skip to content

Commit 70c295e

Browse files
roypatShadowCurse
authored andcommitted
test: update changelog validation to match new mdformat
with new mdformat we no longer need to wrap level 2 headings in escaped brackets, just normal brackets. Signed-off-by: Patrick Roy <[email protected]>
1 parent cdbfac0 commit 70c295e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integration_tests/style/test_repo.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ def test_repo_validate_changelog():
4444
errors = []
4545
for lineno, line in enumerate(changelog, start=1):
4646
if line.startswith("## "):
47-
if not re.match(r"^## \\\[.+\\\]$", line):
48-
msg = "Level 2 headings (versions) should be wrapped in \\[\\]"
47+
if not re.match(r"^## \[.+\]$", line):
48+
msg = "Level 2 headings (versions) should be wrapped in []"
4949
errors.append((lineno, msg, line))
5050
if line.startswith("### "):
5151
if not re.match(r"^### (Added|Changed|Deprecated|Removed|Fixed)$", line):

0 commit comments

Comments
 (0)