Thanks to visit codestin.com
Credit goes to github.com

Skip to content

warning: --fix is incompatible with --add-noqa when using --diff #20609

@smurfix

Description

@smurfix

Summary

It is not possible to see what an add-noqa operation would do before actually doing it.

$ ruff check --select D101,D102 --add-noqa --diff src/
warning: --fix is incompatible with --add-noqa.
$ 

IMHO: ruff either complains, or it generates fix-ups.
In the latter case, whether ruff (a) rewrites the code or (b) adds #noqa should be orthogonal to whether (x) changes are applied or (y) a diff is emitted; ax ay bx by should all be possible.

Version

0.13.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliRelated to the command-line interface

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions