Skip to content

Formatter: August Goals #6203

@MichaReiser

Description

@MichaReiser

Our goal for the next four weeks / August is to make progress on some of the remaining hard problems and close the gap to Black. We're looking for contributors that help us implement the remaining syntaxes (preliminary match statement at this point) and fix black incompatibilities. Please reach out if you're interested in tackling something else.

Syntax support

Our goal is to support formatting of all Python syntax by the end of this iteration. This includes fixing bugs where the formatter changes semantics OR introduces syntax errors.

Black compatibility

Our goal is to fix some black, what we believe more complicated, Black divergences:

Suppression and Pragma comments

Black supports disabling formatting for sections or a single line and implements custom logic to ensure that pragma comments (noqa, type-ignore) are kept to the syntax they applied to. Ruff needs to support these comments as well

Performance [Stretch]

Metadata

Metadata

Labels

formatterRelated to the formatterhelp wantedContributions especially welcome

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions