python-pep8.el

93 views
Skip to first unread message

cburroughs

unread,
Feb 16, 2010, 9:34:51 AM2/16/10
to pep8
http://atomized.org/2010/02/pep8-pylint-in-emacs/

I thought this use of pep8 would be of interest to the group.

Reinout van Rees

unread,
Feb 16, 2010, 10:38:52 AM2/16/10
to pe...@googlegroups.com
On 02/16/2010 03:34 PM, cburroughs wrote:
> http://atomized.org/2010/02/pep8-pylint-in-emacs/
>
> I thought this use of pep8 would be of interest to the group.

I'm using pyflakes and pep8. I've had much more success getting pyflakes
to run than pylint. Pyflakes' advantage is that it doesn't need to
import your code.

http://reinout.vanrees.org/weblog/2009/09/28/fixing-up-code.html

Emacs' ctrl-c ctrl-w is by default bound to pychecker. I modified that
to run pychecker.sh:

#!/bin/bash
pyflakes $1
echo "## pyflakes above, pep8 below ##"
pep8 --repeat $1


Great way to get a good clickable error report that goes right to the
offending line in your python code (probably just like in the post you
linked).


Reinout


--
Reinout van Rees - rei...@vanrees.org - http://reinout.vanrees.org
Programmer at http://www.nelen-schuurmans.nl
"Military engineers build missiles. Civil engineers build targets"

Reply all
Reply to author
Forward
0 new messages