google / google/yapf

Is there a way to force YAPF to always split/fold comprehensions?

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

Description

How to force YAPF to always split/fold comprehensions like with SPLIT_COMPLEX_COMPREHENSION when column_limit is exceeded?

I have been trying many sorts of configuration setups - all to no avail. I'd rather avoid spraying over the codebase with yapf: disable for most of non-trivial comprehensions...

I also [posted about it on Stack Overflow](https://stackoverflow.com/questions/52558919/is-there-a-way-to-force-yapf-to-always-split-fold-comprehensions). So far, no replies.

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.