Skip to content

Does the Ruff formatter validate the final AST in a similar manner to Black? #8184

@max-muoto

Description

@max-muoto

We are looking to replace black with the Ruff formatter, but one question I had was does the Ruff formatter validate for an AST equivalent to the original? I know this can be disabled in black with the --fast flag but was curious if this was built into the Ruff formatter by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    formatterRelated to the formatterquestionAsking for support or clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions