Файли
openidea/crates
Muuтаmuutot ba5eb92c70 fix(python): let a selected Ruff format below [tool.black] (#7476)
Choosing Ruff as the Python formatter had no effect below a pyproject.toml with [tool.black]: the formatter lookup picked Black whenever Black was enabled and configured, before it looked at which tool the user had selected. An explicit choice now wins. A selected Black formats Python even without [tool.black] and before a selected Ruff. A selected Ruff formats Python below [tool.black]. Without an explicit choice, [tool.black] still hands formatting to Black.

The Ruff and Black settings pages stay where they are, and their hints now say how the two choices interact.

Fixes #7178

Co-authored-by: muutot <[email protected]>
2026-12-02 23:23:23 +08:00
..