Skip to content

Commit

Permalink
test: update changelog validation to match new mdformat
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
roypat committed Dec 10, 2024
1 parent 2b1fc90 commit 66c8c8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration_tests/style/test_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def test_repo_validate_changelog():
errors = []
for lineno, line in enumerate(changelog, start=1):
if line.startswith("## "):
if not re.match(r"^## \\\[.+\\\]$", line):
msg = "Level 2 headings (versions) should be wrapped in \\[\\]"
if not re.match(r"^## \[.+\]$", line):
msg = "Level 2 headings (versions) should be wrapped in []"
errors.append((lineno, msg, line))
if line.startswith("### "):
if not re.match(r"^### (Added|Changed|Deprecated|Removed|Fixed)$", line):
Expand Down

0 comments on commit 66c8c8b

Please sign in to comment.