google / google/yapf

Example of "visually indented line with same indent as next logical line"

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

Description

yapf --style=pep8 takes the following code:

```python
class A:
def b():
if(
11111111111 == 11111111 and(
11111111111 != 111111111111111111111
)
):
pass
```

And produces the following formatting:

```python
class A:
def b():
if (11111111111 == 11111111 and
(11111111111 != 111111111111111111111)):
pass
```

The pep8 checker considers this invalid (E129 visually indented line with same indent as next logical line). I think I agree with it. This looks like another instance of the problem from #33 with slight variations.

I tested this running against a2f0342 under Python 3.5.1

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.