Mere Code

Diverse Topics of General Interest to the Practicing Programmer

pyflakes update

Thanks to radix, exarkun & dash, my branch to pyflakes to warn about duplicate definitions of classes finally landed. I did the work a year ago as an outrage-powered, opportunistic fix after I saw a co-worker struggle with tests weirdly not failing (Turned out it was a huge test module and there was another class at the bottom with the same name). I’m very happy to see it landed.

For those who haven’t been paying attention, official pyflakes development is now taking place on Launchpad as part of the divmod.org project. The trunk of that project now has the best version of pyflakes known to man.

pyflakes is the best static Python checker. It’s fast, and has very few false positives.

Update: A couple of people have asked me about lp:pyflakes. It’s dead. It died when the divmorg.org trac instance died ages ago. Don’t use it. To get pyflakes or any other divmod project, use lp:divmod.org.

Comments

jml on 2011-11-29 09:45
I don't know. I'm not a Pyflakes maintainer, and I only found out about the transfer of projects from the last pyflakes release announcement.
Michael Foord on 2011-11-29 01:18
Where should bugs be reported? lp:divmod.org doesn't have the bug-tracker configured.

If lp:pyflakes is dead, why is it still linked to from pypi?
jml on 2011-11-23 09:57
Yeah, pyflakes is awesome.
gz on 2011-11-22 20:55
Looking at the checker code, it's actually a pretty elegant use of the python ast module, and a big improvement on the mess of string handling generally found under the covers of python lint modules.