Skip to content

refactor(workspace): make strip_banner style argument required - #1083

Merged
c-vigo merged 2 commits into
release/1.2.0from
feature/1076-strip-banner-style-required
Jul 14, 2026
Merged

c-vigo merged 2 commits into
release/1.2.0from
feature/1076-strip-banner-style-required

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Implements #1076 (review follow-up from #1068).

strip_banner(text, style) no longer defaults style to "html" — a hash-style caller forgetting the kwarg would get wrong header splitting (no shebang / YAML doc-start handling) and could corrupt a file. The single external caller (test_scaffold_downstream_release_doc.py) now passes style="html" explicitly; internal callers already did.

TDD: RED test asserting TypeError on omitted style, then the change. Evidence: 38 passed across the two affected test files; full just precommit green (sync-manifest/generate-docs exercise the real callers). Changelog entry under ## [1.2.0] - TBD ### Changed, root + mirror.

Refs: #1076

@c-vigo
c-vigo merged commit 65dfc61 into release/1.2.0 Jul 14, 2026
13 checks passed
@c-vigo
c-vigo deleted the feature/1076-strip-banner-style-required branch July 14, 2026 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant