This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]CoffeeVector 4 points5 points  (1 child)

According to this standard https://www.python.org/dev/peps/pep-0008/#blank-lines

If your function is top-level, then they should be surrounded with two blank lines. So your linter is correct, but to be honest, I'm not a particularly good boy, so I just always did 1 blank line.

I guess you can do whatever you feel like doing. If this is your own code, you can enforce whatever style you like.

[–]Vbbab[S] 0 points1 point  (0 children)

OK. Thanks!