google / google/yapf

Indent the outer argument if it fits in one line, rather than the inner one

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

Description

The title may sound cryptic but this is what I mean

```
$ echo 'a_very_indented_function(another_very_long_function(key0=val0, key1=val1, key2=val2))' | yapf
a_very_indented_function(another_very_long_function(key0=val0,
key1=val1,
key2=val2))
```

I'd argue

```
a_very_indented_function(
another_very_long_function(key0=val0, key1=val1, key2=val2))
```

is clearly better.

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.