google / google/yapf

Do not break on function open parenthesis

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

Description

Is it possible to get yapf to formatting code like this:
```
long_function("And another example", 1, "Another very long option",
key_2=4, key_3=5)
```
Basically fill the line with with arguments as long as possible and then break with the same alignment into the next line.

Instead I only get:
```
long_function(
"And another example", 1, "Another very long option", key_2=4, key_3=5)
```

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.