google / google/yapf

Add knob to control line split before/after member access (.)

Open
#530 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
14k
Forks
904
PR merge metrics
No merged PRs in 30d

Description

In many languages, it is common to split long lines at member access, with the '.' operator moved to the new line, and I tend to prefer this approach in python. It makes it easier to visually parse chained calls/accesses. YAPF tends to add line breaks _after_ the '.'. Could there be a new option to tell YAPF to prefer splitting before?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.