Skip to content

refactor: fold __Env__ into the adjacent docstring#328

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/env-section-merged-form
Jul 23, 2026
Merged

refactor: fold __Env__ into the adjacent docstring#328
Jammy2211 merged 1 commit into
mainfrom
feature/env-section-merged-form

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

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 *_test scripts. 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

  • Resolved-env diff vs HEAD (empty base, both profiles): identical for every script — pure syntax move.
  • (User workspaces) real notebook generation on sampled scripts: zero __Env__/ENV: leakage; the host docstring's prose renders unchanged.
  • All-strict validator: 0 errors.

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

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
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Jul 23, 2026
@Jammy2211
Jammy2211 merged commit f6fc083 into main Jul 23, 2026
8 checks passed
@Jammy2211
Jammy2211 deleted the feature/env-section-merged-form branch July 23, 2026 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending-release PR queued for the next release build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant