Closed Mogost closed 3 months ago
I tried to reproduce the issue with
[tool.ruff]
preview=true
[tool.ruff.format]
preview = true
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"COM812",
"ISC001",
]
And ran
$ uv tool run ruff format
warning: `uv tool run` is experimental and may change without warning.
Resolved 1 package in 3ms
Installed 1 package in 4ms
+ ruff==0.5.0
warning: `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible. Ignoring `one-blank-line-before-class`.
warning: `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible. Ignoring `multi-line-summary-second-line`.
13 files left unchanged
I do get warnings about incompatible linter rules but not about COM812
or ISC001
being incompatible with the formatter. Do you have an other pyproject.tom
in a sub folder?
Oops. There is indeed a subdirectory with its own pyproject.toml. As soon as I removed it, the problem went away. Thanks and sorry for the inconvenience. And thanks for the awesome job!
The following configuration triggers a warning message but shouldn't. All linter rules are enabled but warning contains rules that are in ignore section.