I've just started using flake8 from within vim. Flake8 checks code for
PEP8 conformance and general errors, including undefined names. That means
that running it when editing, say, a web2py controller, lots of warnings
are given:

/path/to/file.py|16| W802 undefined name 'session'

There is an option to suppress reporting of specific errors/warnings,
but that only applies to the PEP8 reporting, not the pyflakes reporting.
Given the "implicit import" style of web2py (which I'm not complaining
about), this results in lots of spurious errors when checking web2py code,
spoiling an otherwise very useful tool.

Has anyone hacked around with flake8 to suppress the "undefined names"
warnings?

Notes:
flake8: http://pypi.python.org/pypi/flake8
flake8 vim integration: https://github.com/avidal/flake8.vim
the bug:
https://bitbucket.org/tarek/flake8/issue/14/flake8-fails-to-ignore-errors-warning-from
-- 
"You can have everything in life you want if you help enough other people
get what they want" - Zig Ziglar. 

Who did you help today?

Reply via email to