astral-sh / ruff

An extremely fast Python linter and code formatter, written in Rust.
https://docs.astral.sh/ruff
MIT License
31.19k stars 1.04k forks source link

Ruff 2025 style guide #13371

Open MichaReiser opened 5 days ago

MichaReiser commented 5 days ago

From Black's changelog. Last checked 16.09.2024, Last release: v24.8.0.

Goals:

Preview Styles

Black preview styles

Ruff preview styles

Ruff specific preview styles that we may want to stabilize

Ruff improvements

Open Bugs

Existing bugs in the ruff formatter for which no preview style exists.

Require a new style guide

Bug fixes that change how existing code is formatted and require a

Bug fixes that don't change existing formatting

Bug fixes that don't require a new style guide because they don't change existing cod

Black Bug fixes

Black preview styles that are related to Black-specific bug fixes. Ruff already handles those cases correctly

MichaReiser commented 4 days ago

If anyone's interested in picking up one item on this list, let me know :) Happy to help

MichaReiser commented 4 days ago

One open question is whether we want to support multiple formatter edition (or at least one old edition). It took the community a long time to upgrade to Ruff 0.2

bnkc commented 4 days ago

Hey @MichaReiser I'd be interested in picking up https://github.com/astral-sh/ruff/issues/11216. Let me know if this is alright. Thanks!

MichaReiser commented 4 days ago

Hey @MichaReiser I'd be interested in picking up #11216. Let me know if this is alright. Thanks!

Sure. Feel free to give it a go. I don't know what changes are necessary for it but feel free to comment on that issue with ideas or go ahead with a PR and we can discuss there.