google / google/yapf

(Inner block of) code blank lines removal

Open
#877 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

Hello. I wonder if there is an option to remove blank lines _in a block of code_. Something like this:

def f(a, b):
print(a) # we don't want the next line to stay

print(b)

I've looked through the README and the code but found a few options regarding top-level definitions only like imports, classes etc. Such a removal doesn't seem to be obligatory according to pep8 but it is somehow preferred in my team.

If there is no options (looks so) would a corresponding PR come in handy? I am not sure how common this practice is.

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.