Skip to content

Improve warnings when ignoring preview rules without preview flag #7491

@bersbersbers

Description

@bersbersbers
ruff check --isolated --ignore PLC1901,PLR0904  # version 0.0.290

outputs

warning: Selection of nursery rule `PLC1901` without the `--preview` flag is deprecated.
warning: Selection `PLR0904` has no effect because the `--preview` flag was not included.

I think these warnings are rather irrelevant - they basically confirm what the users wants to do anyway, which is not select these rules.

Metadata

Metadata

Assignees

Labels

previewRelated to preview mode features

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions