exe_checklist: handle bare list markers, nested item continuations, and code fences (OLD-8385) #703
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/703"
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?
Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-24T12:24:54Z.
Summary
Restores old upstream PR 8385 (OLD-8385).
Refines markdown parsing in \ ools/exe_checklist.py:
Verification
Imported from ubiquitarianism/leonida. Originally posted by PierreEbele on 2026-11-24T19:34:33Z.
Reviewed 1f52164:
python3 -I tests/test_exe_checklist.py16/16 OK (Ubuntu 24.04 arm64, Python 3.12.3). Oneregression against main: a nested note is now reported twice and its marker ends up in the parent's text.
- **VERIFY:** parent note/- **VERIFY:** child note/- nextgives on main[(1, 'parent note'), (2, 'child note')], here[(1, 'parent note - **VERIFY:** child note'), (2, 'child note')].Stopping the continuation at a nested item that starts its own marker would fix it; worth a test.
Smaller: an unclosed ``` fence now hides every later note in the file (main still reports them), and
~~~fencesaren't recognised. AI-assisted review.
Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-25T16:27:30Z.
Thank you for the review and catching that @PierreEbele! Addressed in commit
522e36f72:DOC_MARK.match(curr_body)check on nested list items so continuation immediately halts when a nested item begins with its own marker (**VERIFY:**,**NOTE:**, etc.).test_doc_notes_nested_item_with_own_marker_stops_continuationintests/test_exe_checklist.py; all 17 tests pass.AI-assisted (Claude Code)
Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-25T21:31:41Z.
Thanks @PierreEbele! Updated in
35bae64b5:e34ff17e9).AI-assisted (Claude Code)
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T10:59:29Z.
Red/green: the PR's tests fail on main and pass with this PR (Linux, Python 3.13.18).
Targeted batch of 23 PRs (their tests, the tests importing the changed modules, the docs tests) on main
3ca0707: no new failure, Linux / Python 3.13.AI-assisted (Claude Code, Claude Opus 5.5)