ruff icon indicating copy to clipboard operation
ruff copied to clipboard

Bug report: I001 not working properly

Open mvadari opened this issue 1 year ago • 1 comments
trafficstars

Command: poetry run ruff format

Code:

from typing import Optional
from pprint import pformat

isort via flake8 highlights this as an issue, because it is sorted incorrectly. But ruff doesn't seem to have any issue.

Subsection of ruff settings:

[tool.ruff.lint]
ignore = [
    "D205",
    "D212",
    "D415",
]
select = [
    "ANN",
    "D",
    "E",
    "F",
    "I",
    "W",
]

mvadari avatar Feb 16 '24 19:02 mvadari

Hy @mvadari

Can you try running ruff check --fix? isort is a lint rule and runs as part of ruff check and not ruff format. We're aware that this is confusing but haven't yet had a chance to work on integrating the formatter into ruff check https://github.com/astral-sh/ruff/issues/8232

MichaReiser avatar Feb 19 '24 07:02 MichaReiser

I'm closing this since we haven't heard back. Feel free to re-open/comment if you're still encountering this issue.

MichaReiser avatar Feb 23 '24 21:02 MichaReiser