3 ms·
pychecker and pyflakes are good for Python 2.7 or so. I've been pleasantly surprised by them.
by pnathan 15y ago
pychecker and pyflakes are good for Python 2.7 or so. I've been pleasantly surprised by them.
- lclarkmichalek 15y agoPylint is also worth a mention, though its output is rather verbose.
- riffraff 15y agoFWIW, I have found pyflakes really useful in fixing the most common bugs I encounter in a python program (using a wrong identifier) but I haven't noticed anything deep about it (such as detecting _obvious_ AttributeErrors), does pychecker work better in this sense?
- pnathan 15y agoNo, it's limited in scope.
- spenrose 15y agopyflakes compiles your code, pychecker imports it, which is not idempotent -- all top-level statements are executed. pyflakes will throw some false positives, but not many. pychecker will fill your terminal with opinions. pyflakes is IMHO a much superior tool. Plugging it into emacs via flymake is a no-brainer; I believe there are solutions for vi as well: http://www.emacswiki.org/emacs/?action=browse;oldid=PythonMode;id=PythonProgrammingInEmacs#toc9 http://www.emacswiki.org/emacs/?action=browse;oldid=PythonMo...
- riffraff 15y agoyes, I use pyflakes within vim via syntastic https://github.com/scrooloose/syntastic https://github.com/scrooloose/syntastic