PyLint has five βcategoriesβ for posts (which I know of).
These categories were very obvious, but Pylint's numbered posts are now replaced with names. For example, C0302 now too-many-lines . But "C" tells us that too-many-lines is a conference message. This is confusing because messages under the Convention often appear as a warning, since many systems (such as Syntastic ) seem to classify everything as either a warning or an error. However, the PyLint report still destroys all of these categories, so it is definitely definitely supported.
Your question specifically mentions warnings, and all PyLint Warning message names begin with "W".
It was hard for me to track this, but this answer ultimately led me to the answer. PyLint still supports disabling entire categories of messages. So, to disable all warnings, you must:
disable=W
This can be used on the command line:
$ pylint --disable=W myfile.py
Or you can put it in your pylintrc file:
[MESSAGES CONTROL] disable=W
Note. Perhaps you already have the disable option in your rc file, in which case you should add "W" to this list.
Or you can put it in your code in your code, where it will work for the area in which it is placed:
# pylint: disable=W
To disable it for the entire file, it is best to put it at the very top of the file. However, even at the very top corner of the file, I found that I was still receiving the warning message trailing-newlines (technically this is a conditional warning, but I get to that).
In my case, I had a library written by someone a long time ago. It worked well, so there was no need to worry about the modern Python convention, etc. All I really worried about were bugs that would probably break my code.
My solution was to disable all the Warning, Convention, and Refactoring messages for this single file, only putting the following PyLint command on the first line:
# pylint: disable=W,C,R
Besides the above post for trailing lines, this did exactly what I needed.