[PR #632] exe_checklist: fix numbered/plus doc lists, colon-less markers, and BOM/shape checks (EXE-CHECKLIST-PARSE) #673

Open
opened 2026-11-26 20:18:40 +01:00 by 4ld0 · 0 comments
Owner

📋 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)

  • 10856a3 exe_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:

  1. doc_notes() list boundaries and prefix stripping: stop continuation lines on all list items matched by LIST_ITEM (including + and numbered 1. / 1) items) instead of only - and * , and strip LIST_ITEM from the first line instead of ^[-*] .
  2. 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 leave VERIFY unstripped.
  3. called_classes() BOM and JSON shape validation: open --gdk-calls files with utf-8-sig and validate object/list/string shapes, raising ValueError (handled by main() with exit code 1) instead of letting TypeError escape as a traceback.

Verification

  • python -I tests/test_exe_checklist.py -v -> Ran 18 tests ... OK (14 existing + 4 new regression tests in ExeChecklistEdgeCases)
  • Negative control: running ExeChecklistEdgeCases against unpatched main failed (FAILED (failures=4, errors=2))
  • python -I -m py_compile tools/exe_checklist.py tests/test_exe_checklist.py -> OK
  • python -I scripts/check_no_game_data.py tools/exe_checklist.py tests/test_exe_checklist.py -> exit 0
  • python -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.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/632 **Author:** [@hamdog0203](https://github.com/hamdog0203) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/exe-checklist-parse` --- ### 📝 Commits (1) - [`10856a3`](https://github.com/ubiquitarianism/leonida/commit/10856a3c06dfd693cef46054600b0f6f0206316f) exe_checklist: fix numbered/plus doc lists, colon-less markers, and BOM/shape checks (EXE-CHECKLIST-PARSE) ### 📊 Changes **2 files changed** (+131 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_exe_checklist.py` (+99 -0) 📝 `tools/exe_checklist.py` (+32 -8) </details> ### 📄 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`: 1. **`doc_notes()` list boundaries and prefix stripping:** stop continuation lines on all list items matched by `LIST_ITEM` (including `+` and numbered `1.` / `1)` items) instead of only `- ` and `* `, and strip `LIST_ITEM` from the first line instead of `^[-*] `. 2. **`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 leave `VERIFY ` unstripped. 3. **`called_classes()` BOM and JSON shape validation:** open `--gdk-calls` files with `utf-8-sig` and validate object/list/string shapes, raising `ValueError` (handled by `main()` with exit code `1`) instead of letting `TypeError` escape as a traceback. ### Verification - `python -I tests/test_exe_checklist.py -v` -> `Ran 18 tests ... OK` (14 existing + 4 new regression tests in `ExeChecklistEdgeCases`) - Negative control: running `ExeChecklistEdgeCases` against unpatched `main` failed (`FAILED (failures=4, errors=2)`) - `python -I -m py_compile tools/exe_checklist.py tests/test_exe_checklist.py` -> OK - `python -I scripts/check_no_game_data.py tools/exe_checklist.py tests/test_exe_checklist.py` -> exit `0` - `python -I tests/test_text_write_line_endings.py -v` -> `Ran 3 tests ... OK` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#673
No description provided.