fix(cli): copy VALID_SECTIONS when parsing sections list

This commit is contained in:
jakob.scheid committed 2026-09-13 19:04:54 +02:00
1 parent 089cf5f2ff
commit 5e84156e01
1 file changed
+1 -1
+1 -1
View File
@@ -41,7 +41,7 @@ def parse_sections_list(include_sections: Optional[list[str]] = None, exclude_se
'''
if include_sections is None:
include_sections = VALID_SECTIONS
include_sections = VALID_SECTIONS[:]
for section in exclude_sections:
while section in include_sections: