google / google/yapf

Preserve arguments list aligned to an opening bracket

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

Description

I have the following complain. This
```
redis = await create_subprocess_exec("Redis", "/usr/local/bin/redis-server",
"--bind", str(host), "--port", str(redis_port))
```
becomes this:
```
redis = await create_subprocess_exec(
"Redis", "/usr/local/bin/redis-server", "--bind", str(host), "--port", str(redis_port)
)
```
I would like to keep the first variant (where I align code to opening bracket and line brakes are set by some logic), but cannot find proper setting, is that possible?

I have tried to modify `split_before_named_assigns`, but this did not help...

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.