Skip to content

Feature Request: Exclude lines from conversion with a comment #574

@CarliJoy

Description

@CarliJoy

It would be nice if line/block could be excluded from upgrading with a comment like # nopyupgrade or # start nopyupgrade in order to keep specific lines:
i.e. dict(foo="bar") when intended.

We are discussion to include pyupgrade in our teams pipeline but some team mate made this an requirement.

Would / Will this be possible in the future?

Have a glimps look in the source I don't see how to introduce this easily :-/

Any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions