6 de mayo de 2011

PEP8 check in TextMate

I think any serious programmer that codes with Python should try to get his/her code as close as possible to PEP8.

Many IDEs have their own way to perform static PEP8 code checks. If you use TextMate, here is a way to go:


https://github.com/astrofrog/python-pep8-tmbundle

Installation:

cd ~/Library/Application\ Support/TextMate/Bundles/
git clone git://github.com/astrofrog/python-pep8-tmbundle.git "Python PEP8.tmbundle"
cd Python\ PEP8.tmbundle/
git submodule init
git submodule update
osascript -e 'tell app "TextMate" to reload bundles'

Usage:
shift + crtl + command + v

And that's it!
 

No hay comentarios: