mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:25:53 +01:00
[PR #632] exe_checklist: fix numbered/plus doc lists, colon-less markers, and BOM/shape checks (EXE-CHECKLIST-PARSE) #673
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#673
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/632
Author: @hamdog0203
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:fix/exe-checklist-parse📝 Commits (1)
10856a3exe_checklist: fix numbered/plus doc lists, colon-less markers, and BOM/shape checks (EXE-CHECKLIST-PARSE)📊 Changes
2 files changed (+131 additions, -8 deletions)
View changed files
📝
tests/test_exe_checklist.py(+99 -0)📝
tools/exe_checklist.py(+32 -8)📄 Description
Claimed in the coordination issue as: EXE-CHECKLIST-PARSE (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7128650930)
AI-assisted: yes
No game files touched or included.
Summary
Three small parsing and input-validation fixes in
tools/exe_checklist.py:doc_notes()list boundaries and prefix stripping: stop continuation lines on all list items matched byLIST_ITEM(including+and numbered1./1)items) instead of only-and*, and stripLIST_ITEMfrom the first line instead of^[-*].without_marker()on colon-less markers: match bold markers up to their closing**and plain comment markers up to an optional parenthetical +:or whitespace, so markers without an immediate colon no longer eat prose up to a later colon or leaveVERIFYunstripped.called_classes()BOM and JSON shape validation: open--gdk-callsfiles withutf-8-sigand validate object/list/string shapes, raisingValueError(handled bymain()with exit code1) instead of lettingTypeErrorescape as a traceback.Verification
python -I tests/test_exe_checklist.py -v->Ran 18 tests ... OK(14 existing + 4 new regression tests inExeChecklistEdgeCases)ExeChecklistEdgeCasesagainst unpatchedmainfailed (FAILED (failures=4, errors=2))python -I -m py_compile tools/exe_checklist.py tests/test_exe_checklist.py-> OKpython -I scripts/check_no_game_data.py tools/exe_checklist.py tests/test_exe_checklist.py-> exit0python -I tests/test_text_write_line_endings.py -v->Ran 3 tests ... OK🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.