Ignore pyflakes warnings with bypass_pyflakes
11 Jan 2013
Pyflakes is a popular linter for python, even if it isn't being maintained anymore. One long standing request is to allow ignoring of specific warnings with comments, like many other linters allow.
For example, it's common in python config files to use
import *. But you definitely don't want to allow that in most places.
This results in the warning
settings/local.py:1: 'from settings.base import *' used; unable to detect undefined names.
It would be nice to be able to do the following.
Here is a python script that monkey patches pyflakes to add this functionality.
If you save this as
pyflakes-bypass.py, instead of running the
pyflakes <path> command directly, you would now run
I'm currently working at NerdWallet, a startup in San Francisco trying to bring clarity to all of life's financial decisions. We're hiring like crazy. Hit me up on Twitter, I would love to talk.