pylint #65401 Enable controlling options on a per-file basis [rejected]

Currently pylint lets you control settings (e.g. disabled messages) at a global level, or a line-by-line level. It would be really useful to be able to specify settings at a per-file basis. This would be useful, for example, in cases where you have many warning messages for a single file that you want to allow without having to comment each line.

Using "unittest" for example you may have many "setUp" and "tearDown" calls which elicits a warning message. Aside from blocking the warning messages globally, or adding lots of comments there is no way to specify that those messages should be ignored for that file.

Would it be possible to allow including a line near the top of a file which lists messages that can be ignored for the duration of the file?

As an example, JSLint allows for something like this with:

/*jslint browser: true, white: true, onevar: true, undef: true, nomen: false, eqeqeq: true, plusplus: true ...*/

appeared in<not specified>
done in<not specified>
load left0.000
closed by<not specified>