Skip to content

Commit

Permalink
Ruff auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Archmonger committed Sep 27, 2024
1 parent 1cd91f4 commit bf4a0a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/validate_changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def validate_changelog(changelog_path="CHANGELOG.md"):

# Check the order of the sections
# Simplify the changelog into a list of `##` and `###` headers
changelog_header_lines = [line for line in changelog.split("\n") if line.startswith("###") or line.startswith("##")]
changelog_header_lines = [line for line in changelog.split("\n") if line.startswith(("###", "##"))]
order = ["### Added", "### Changed", "### Deprecated", "### Removed", "### Fixed", "### Security"]
current_position_in_order = -1
version_header = "UNKNOWN"
Expand Down

0 comments on commit bf4a0a7

Please sign in to comment.