First things first: http://pypi.python.org/pypi/pep8
For years, there’s been a pep8.py
python code style checker that does a
pretty decent job of warning you of common offences against the python style
guide (“pep8”). I’ve always kept
a local copy in my tools directory with a shell script around it to run it.
What would be nicer than doing an easy_install pep8
instead of googling
for pep8.py
? Well, it was just a single file without a setup.py. And
when I checked again a while ago, it still wasn’t on pypi. And the original
svn.browsershots.org location is down. Fate unknown at
the moment as email contact failed.
A blog entry (at the daily build) pointed me at Chris Burroughs’ github copy which also included some extra fixes. I added a setup.py and fixed up the documentation a bit and mailed Chris and he included my changes. (First time I used git, btw). He’ll probably pull in the latest changes I made on my copy as I managed to bork the setup.py on the first try…
Anyway: for all your installing pleasure: http://pypi.python.org/pypi/pep8
Thanks to Johann Rocholl for making the original pep8.py! When svn.browsershots.org re-surfaces everything can of course be merged back.
My name is Reinout van Rees and I program in Python, I live in the Netherlands, I cycle recumbent bikes and I have a model railway.
Most of my website content is in my weblog. You can keep up to date by subscribing to the automatic feeds (for instance with Google reader):