google / google/yapf

Long line not being broken

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

Description

Given a file with the following content, I would expect running yapf --style=chromium to split line 7 (the line with the lambda) because it is longer than the line limit (83/80), but it makes no change.

```
def GenTests(api):
success_log_keys = ['test_utils.gtest_results']

yield api.test(
'flake_skipped',
api.post_check(
lambda check, steps: check(steps['test'].logs.keys() == success_log_keys)
),
api.post_process(post_process.DropExpectation),
)
```

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.