add per-file configuration support in configuration files.
Currently the only way to disable specific warnings in a specific file is to add
# noqa entries per offending line. Please add support for suppressing specific errors for specific files, where all instances of a specific error within that file are ignored.
For example, in polyglot projects (supporting Py2 + Py3) a pycompat file is commonplace that does a lot of imports that are not used in that module. Having to mark this file as completely exempted from linting leaves the file open to other linting errors, and marking each import with
# noqa gets tedious fast.
I propose that a header with
# flake8 noqa: error_code, error_code, etc. acts the same as if
# noqa: error_code, error_code, etc. has been added to every code line in the file, and / or that a
[**/globbed/filepath.*] section in a configuration file allows you to specify additional configuration for a given file or set of files.