Comment 2 for bug 1481052

Revision history for this message
John Vandenberg (jayvdb) wrote :

My vote is to not add this feature, and let flake8 do CLI niceties like this.

If you want to do it with raw pyflakes, at least on unix, the following patterns can be used if multiple globs are not working.

$ pyflakes `find . -name '*.py' -and -not -name package_name -and -not -name module_name.py`

or

$ find . -name '*.py' -and -not -name package_name -and -not -name module_name.py | xargs pyflakes

or

$ pyflakes `find . -name '*.py' | grep -v package_name | grep -v module_name.py`

grep -E might be better, depending on the globs you need to recreate as regex.