exe_checklist: handle bare list markers, nested item continuations, and code fences (OLD-8385) #703
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!703
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/exe-checklist-list-items"
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 successfully merged and closed
Summary
Restores old upstream PR 8385 (OLD-8385).
Refines markdown parsing in \ ools/exe_checklist.py:
Verification
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.
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)
Thanks @PierreEbele! Updated in 35bae64b5:
AI-assisted (Claude Code)
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)