google / google/yapf

Split kwargs should allow aligning to after the argument's name

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

Description

Input:
```python
foo(argument=1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + 20)
```
Expected:
```python
foo(argument=1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 +
16 + 17 + 18 + 19 + 20)
```
Actual:
```python
foo(argument=1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 +
16 + 17 + 18 + 19 + 20)
```
Using version 0.32.0 on Ubuntu 20.04. As far as I can see, pep8 does not cover this situation.

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.