Skip to content

Formatter: allow_form_feeds preview style #8895

@MichaReiser

Description

@MichaReiser

Implement Black's allow_form_feeds style as a preview style in Ruff.

Black now retains form feed characters on module level on otherwise empty lines. Supporting this would be nice but adds some complexity because we need to check the source text to identify from feed characters.

I consider this a nice to have but not a must for the stable release of the formatter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    formatterRelated to the formatterneeds-decisionAwaiting a decision from a maintainerpreviewRelated to preview mode features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions