From bf4a0a72e2d3d382bc69f105197808b14652f390 Mon Sep 17 00:00:00 2001 From: Archmonger <16909269+Archmonger@users.noreply.github.com> Date: Fri, 27 Sep 2024 16:52:30 -0700 Subject: [PATCH] Ruff auto fixes --- scripts/validate_changelog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/validate_changelog.py b/scripts/validate_changelog.py index 5731552..71264be 100644 --- a/scripts/validate_changelog.py +++ b/scripts/validate_changelog.py @@ -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"