Repository navigation
docs(python): the guide's examples run in CI, and signature blocks are marked as such (#872) - #902
Merged
Merged
Conversation
DrunkOnJava
enabled auto-merge (squash)
October 23, 2026 15:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Part of #872 (1.0 criteria S4).
docs/python.mdhad 21pythonblocks and CI ran none. Three are runnable examples (open a file and read it, batch metadata over a folder, resource limits on untrusted input); they now run in CI, in order, against the synthetic project filecorpus/tier1/architectural-2024, through the installed wheel. The other 18 are method signatures or the shape of a result, which cannot run; they are fencedtext.Changes
tests/python/test_docs_python.py(new): reads the page, runs itspythonblocks in one namespace from a scratch directory that holds the fixture asmy-family.rfaandprojects/architectural-2024.rvt, withuntrusted_pathset, and names the line of a block that fails. It runs in the wheel job's existingpytest tests/pythonstep.docs/python.md: 18 fences frompythontotext.docs/release-1.0-criteria.md: S4 to passed, with this evidence.CHANGELOG.md.Testing
The harness is the test, and the wheel job runs it. If a block fails on the synthetic file (for example a schema without
ADocument), the block is fixed here, not skipped.Audit-honesty checklist
Legal and contribution hygiene
Breaking changes
None.
Screenshots or output samples
N/A.