Friday, January 05, 2007

PEP 8 checker

PEP 8 checker for the anal retentive in all of us. :)

/Users/gergely/twp/twp/ W291 trailing whitespace
JCR: Trailing whitespace is superfluous.

/Users/gergely/twp/twp/ E302 expected 2 blank lines, found 1
def refresh_images(limit=dbbot._default_limit):
Separate top-level function and class definitions with two blank lines.

Method definitions inside a class are separated by a single blank line.

Extra blank lines may be used (sparingly) to separate groups of related
functions. Blank lines may be omitted between a bunch of related
one-liners (e.g. a set of dummy implementations).

Use blank lines in functions, sparingly, to indicate logical sections.

I'm the kind of masochistic guy who actually enjoys this kind of thing, but I need to figure out a better way to integrate it with PyDev. I wonder what's the easiest way to make Eclipse jump to the line where the error happened. Hmm...

No comments: