Skip to content

Using ruff check diff suppresses errors #4093

@aminalaee

Description

@aminalaee

Hey, thanks for the great work.
I don't know if this is a bug or maybe unclear flag, but doing ruff check --diff . does not fail:

try:
    pass
except:
    pass

But running ruff check . shows proper errors:

E722 Do not use bare `except`

Is this expected? I didn't expect --diff to have this side-effect, maybe the help is not clear?

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