Hacking, Software Collaboration, Testing and Diverse Other Topics of General Interest to the Practicing Programmer

Monday, November 21, 2011

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.

4 comments:

gz said...

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.

jml said...

Yeah, pyflakes is awesome.

Michael Foord said...

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 said...

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.

Twitter Updates

Blog Archive