On Jul 1, 2011, at 11:03 AM, pbreit wrote:
>
> I just use text mate on a Mac and with syntax highlighting I rarely have
> syntax errors. And I never have import errors (since there's very little
> importing necessary).
I've been using pyflakes, mainly because it's trivial to configure and run. The
downside is that it's sort of stupid about imports, so I have two rules.
1. Never import *. (pyflakes will still work, but it will turn off its import
checking)
2. For web2py automatic/invisible imports, use:
if False:
from html import URL, whatever
...and so on
Pyflakes does some nice stuff beyond syntax checking, like finding unused or
uninitialized symbols.
I also use pylint on non-web2py projects. It's more thorough, and harder to
configure. It could probably be made to work on web2py, but I haven't tried
very hard.