Skip to content

Add argument to skip formatting in f-string with double-string-fixer #1045

@SachiaLanlus

Description

@SachiaLanlus

Thank you for this great project. It saves me so much time for chore stuff.
However there is a thing about double-string-fixer annoying me these days.
My team's dev env is set to be Python 3.8.
But my dev env is Python 3.12 for some script to run.
But if I trigger a pre-commit. It will change the quote sign in nested f-string for me.
Which is not allowed in the Python 3.8.
Is there any method to skip this check inside f-string or to specify python-version in argument?

I think this issue is related to #971 and #973

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions