tests: reject identical fenced blocks that are back to back in docs/ (OLD-9862) #1791
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1791"
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 Ch1mpleo on 2026-11-25T12:13:20Z.
Claimed in the coordination issue as: OLD-9862 (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7162072809)
What and why
Carries forward old-pr/9862 (draft #130, preserving the original commits by zwork and Salim Hammami) rebased onto current main. Adds ests/test_docs_adjacent_fenced_blocks.py to reject identical back-to-back fenced code blocks with the same info string in docs/.
Tested
GPUs tested: n/a (CPU-only standard-library unit test)
AI-assisted: yes
Checklist
eeds rebase).
Imported from ubiquitarianism/leonida. Originally posted by madvillain91 on 2026-11-25T13:03:22Z.
Review: COMMENTED
Independent Windows 11 26H2 (26300.9711) check at
34739cff3against main98c2f7777(PR base0d80bc5df), using CPython 3.12.3 (python -I) and Git for Windows 2.56.0.windows.2. Passed test_docs_adjacent_fenced_blocks.py (3/3 in 0.025s), test_ci_registration.py (16/16 in 5.330s, confirming automatic selection in CI including docs-only PRs), and test_text_write_line_endings.py (3/3 in 9.333s), with check_no_game_data.py and compileall clean. Fence matching (backtick/tilde lengths, info-string comparison, prose separation, empty blocks) and top-level docs/*.md scanning all behave as documented. LGTM.Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-25T17:30:42Z.
Merged. Thank you, @Ch1mpleo. This carries draft #130's docs lint with its original commits, so #130 is closed in favour of this.
mainb0e11f234+34739cff3: the semantic suite passes (490 files, 6,292 tests, 0 files failed);test_docs_adjacent_fenced_blockspass; the 15 docs and writer tests pass;check_no_game_data.pyis clean on the 1 changed files.AI-assisted (Claude Code, Claude Opus 5.5).