Skip to content

Formatter: single_line_format_skip_with_multiple_comments preview style #8892

Closed
@MichaReiser

Description

Implement Black's single_line_format_skip_with_multiple_comments style in Ruff.

I don't think it's necessary to gate this change as a preview style. We should also allow the same for fmt:off and fmt:on.

# fmt:skip                           <-- single comment
# noqa:XXX # fmt:skip # a nice line  <-- multiple comments (Preview)
# pylint:XXX; fmt:skip               <-- list of comments (; separated, Preview)

Metadata

Assignees

Labels

formatterRelated to the formatterpreviewRelated to preview mode features

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions