Skip to content

ruff formatter: one call per line for chained method calls #8598

@MartinBernstorff

Description

@MartinBernstorff

This is something I miss tremendously from the rust ecosystem. One example:

image

When formatted becomes:

image

I think the first example is much more readable, and would love a Python formatter which supported it ❤️

Meta:
I was uncertain about where to make a feature request for the ruff formatter, hope this is the right place!

Metadata

Metadata

Assignees

No one assigned

    Labels

    formatterRelated to the formatterstyleHow should formatted code look

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions