Skip to content

Ruff format conflict warnings are shown twice #8271

@yakMM

Description

@yakMM

Happening since ruff format stable was introduced afaik.

Tested on ruff 0.1.3:

Reproduction steps:

Create a python project with ruff, minimal config:

[tool.ruff]
select = ["ISC001"]

Run ruff format src

The warning is showing twice in the console:

warning: The following rules may cause conflicts when used with the formatter: `ISC001`. To avoid unexpected behavior, we recommend disabling these rules, either by removing them from the `select` or `extend-select` configuration, or adding then to the `ignore` configuration.
warning: The following rules may cause conflicts when used with the formatter: `ISC001`. To avoid unexpected behavior, we recommend disabling these rules, either by removing them from the `select` or `extend-select` configuration, or adding then to the `ignore` configuration.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingformatterRelated to the formatter

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions