refactor: fold __Env__ into the adjacent docstring#328
Merged
Conversation
The standalone __Env__ docstring violated the workspace doctrine (multiple __Section__ headers go in ONE docstring, not a close-then- reopen pair). __Env__ becomes the LAST SECTION inside the adjacent docstring — the final docstring in user-facing scripts, the module docstring in *_test scripts — with a standalone block only where no adjacent docstring exists. Pure syntax move: resolved-env diff vs HEAD identical for every script; generation strip removes the section while preserving the docstring's prose; all-strict validator clean. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MRQH5HrmMPfpWkmfh3ysJb
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.
Overview
Refinement 2 of PyAutoLabs/PyAutoHands#189 (parser/strip support: PyAutoLabs/PyAutoHands#191 — merge that first): the standalone
__Env__docstring violated the workspace doctrine — multiple__Section__headers belong in one docstring, not a"""close-then-reopen pair.__Env__now sits as the last section inside the adjacent docstring: the final docstring in user-facing scripts, the module docstring in*_testscripts. A standalone block remains only where a script has no adjacent docstring.Scripts Changed
scripts/**— every script carrying a standalone__Env__docstring has it folded into the adjacent docstring (see file list). No config files touched.Verification
__Env__/ENV:leakage; the host docstring's prose renders unchanged.Ship note
Same human-acknowledged Heart YELLOW lineage as the #189 ship (workspace-validation backlog + stale parks, pre-existing).
Linked issue: PyAutoLabs/PyAutoHands#189
🤖 Generated with Claude Code
https://claude.ai/code/session_01MRQH5HrmMPfpWkmfh3ysJb