Ignore pyflakes warnings with bypass_pyflakes
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 pyflakes-bypass.py <path>
.