Skip to content

Consider removing ISC001 from the conflict list with ruff format #8272

Closed
@yakMM

Description

@yakMM

Reminder on the rule: Checks for implicitly concatenated strings on a single line.

Why I believe there is actually no conflict with ruff format on default settings:

Imagine a situation where the formatter puts two strings on the same line:
foo = "foo" "bar"

If the rule is activated (and a fix available), the line will become:
foo = "foobar"

Which will not be further modified by ruff format.

However, if the rule is not activated, it will stay like:
foo = "foo" "bar"

I assume some people will want to be warned about this appearing because of the formatter and will want to fix it, hence ISC001 being useful alongside ruff format.

Am I missing something on the incompatibility between this rule and ruff format?

Metadata

Metadata

Assignees

No one assigned

    Labels

    formatterRelated to the formatterneeds-decisionAwaiting a decision from a maintainer

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions