Code-convention checker and possibly reformatter

Diez B. Roggisch deets at nospam.web.de
Thu Apr 10 09:47:28 EDT 2008


Hi,

my new company requires me to adhere to some coding conventions - order of
imports, amount of whitespace between method definitions and such stuff.

Because I'm a lazy a**, I'd like to have some automatic checker that will
ensure that I'm following the conventions.

Now I know & use pylint - but the docs are sparse, and so I wonder if and
how one writes plugins for it.

Of course I also dabbled with tokenize and compiler - but those two either
are to lowlevel or already to abstract (the former forces me to re-create
trees on my own, the latter throws away to much data, e.g. comments and
whitespace)

So - any suggestions how to proceed?

Diez



More information about the Python-list mailing list