flake8

Test the compliance of your code with PEP8 definitions:

(dvlpt)$ pmg add flake8
(dvlpt)$ pmg rg

Basic usage:

(dvlpt)$ flake8

This will parse your entire package to produce a result like this one.

../../_images/flake8_report.png

More advanced documentation can be found on the flake8 website.