Skip to content

Formatter: Add --skip-string-normalization option (parity with Black)? #7525

@mikeckennedy

Description

@mikeckennedy

Hey folks. I see that Black added --skip-string-normalization ( psf/black#118 (comment) ) but ruff format --skip-string-normalization leads to error: unexpected argument '--skip-string-normalization' found. Any chance of adding this feature to ruff format?

Alternatively, preferably, have ruff potentially prefer '' rather than "" for strings as an option. That is, still normalize strings, but to '' if specified.

I saw two other issues include this text, but neither seemed to be related to this actual functionality. Sorry if it's already addressed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliRelated to the command-line interfaceformatterRelated to the formatterwishNot on the current roadmap; maybe in the future

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions