google / google/yapf

split before binary operators

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

Description

PEP8 recently switched to recommending splitting lines before binary ops rather than after (https://www.python.org/dev/peps/pep-0008/#should-a-line-break-before-or-after-a-binary-operator). There are some specialized knobs available (SPLIT_BEFORE_BITWISE_OPERATOR, SPLIT_BEFORE_LOGICAL_OPERATOR), but a general SPLIT_BEFORE_BINARY_OPERATOR would be simpler to work with.

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.