kevinw / pyflakes

faster smurfier pyflakes using _ast instead of compiler

This URL has Read+Write access

name age message
file .gitignore Wed Nov 05 15:06:53 -0800 2008 Add twisted.trial temp directories to .gitignore. [kevinw]
file LICENSE Sun Oct 19 13:00:24 -0700 2008 Importing PyFlakes TRUNK from http://divmod.org... [kevinw]
file README.rst Tue Mar 31 17:03:21 -0700 2009 Add a TODO note in the readme about function re... [kevinw]
directory bin/ Wed Nov 05 15:09:02 -0800 2008 exec flags [kevinw]
directory pyflakes/ Thu Mar 12 16:36:33 -0700 2009 Include compatibility fixes for Python 2.6's _a... [kevinw]
file setup.py Thu Mar 12 16:35:25 -0700 2009 Include pyflakes.scripts in the "packages" opti... [kevinw]
README.rst

pyflakes

This version of PyFlakes has been improved to use Python's newer ast module, instead of compiler. So code checking happens faster, and will stay up to date with new language changes.

TODO

Importing several modules from the same package results in unnecessary warnings:

import a.b
import a.c # Redefinition of unused "a" from line 1

The following construct for defining a function differently depending on some condition results in a redefinition warning:

if some_condition:
    def foo(): do_foo()
else:
    def foo(): do_bar() # redefinition of function 'foo' from line 2

IDE Integration