tests: reject identical fenced blocks that are back to back in docs/ (OLD-9862) #1791
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!1791
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1791/head"
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?
@Ch1mpleo on GitHub · 2026-11-25 12:13 UTC · original
Ch1mpleo:carry/old-9862→main· +138 −0 · 1 files · 2 commits · merged 2026-11-25 17:30 UTCClaimed in the coordination issue as: OLD-9862 (#1608)
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).
@madvillain91 on GitHub · 2026-11-25 13:03 UTC · original · reviewed
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.@aslan2142 on GitHub · 2026-11-25 17:30 UTC · original
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).