Skip to content

Ruff 2025 style guide #13371

@MichaReiser

Description

@MichaReiser

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

Goals:

  • Close parity with Black when migrating from Black to Ruff
  • Fix Ruff specific bugs
  • Innovate on local formatting (to keep close parity with black)

Preview Styles

Black preview styles

Black unstable 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

Needs fixing

Metadata

Metadata

Assignees

Labels

formatterRelated to the formatterhelp wantedContributions especially welcomestyleHow should formatted code look

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions