Skip to content

refactor(workspace): make strip_banner style argument required #1076

Closed

Description

@gerchowl

Found during review of release PR #1068.

strip_banner(text, style="html") defaults style to html. That's correct for the current sole caller, but a future hash-style caller who forgets the kwarg would get wrong header splitting (no shebang / doc-start handling) and could corrupt a file.

Suggested: make style a required argument to remove the footgun.

File: scripts/transforms.py:105

Activity

  1. added
    refactor
    priority:low
    area:workspace
    effort:small
    on Jul 14, 2026
  2. c-vigo commented on Jul 14, 2026

    @c-vigo
    Contributor

    Shipped in 1.2.0 via PR #1083.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:workspaceeffort:smallpriority:lowrefactor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions