List of pylint human readable message ids?
Question:
Recent versions of pylint allow for suppressing messages with human readable message ids. For example, instead of
class MyTest(unittest.TestCase): # pylint: disable=R0904
...
you can specify:
class MyTest(unittest.TestCase): # pylint: disable=too-many-public-methods
...
This page lists the numeric message ids. However, I’m looking for a complete list of the human readable versions of the message ids. Where can I find that list?
Answers:
I don’t think there exists (yet) such list on the web, though pylint --list-msgs
automatically produces one.
I’ve stumbled upon your question, searching for such a list myself. So I decided to process pylint --list-msgs
through regex. Then I created such a list. You can access it here.
Here is a dictionary of pylint errors to message for the most the most updated version of the pylint --list-msgs
.
The format is PYLINT_ERROR_ID: ERROR_MESSAGE.
You can find it buried in the pylint documentation here: https://pylint.pycqa.org/en/latest/technical_reference/features.html#pylint-checkers-options-and-switches
Recent versions of pylint allow for suppressing messages with human readable message ids. For example, instead of
class MyTest(unittest.TestCase): # pylint: disable=R0904
...
you can specify:
class MyTest(unittest.TestCase): # pylint: disable=too-many-public-methods
...
This page lists the numeric message ids. However, I’m looking for a complete list of the human readable versions of the message ids. Where can I find that list?
I don’t think there exists (yet) such list on the web, though pylint --list-msgs
automatically produces one.
I’ve stumbled upon your question, searching for such a list myself. So I decided to process pylint --list-msgs
through regex. Then I created such a list. You can access it here.
Here is a dictionary of pylint errors to message for the most the most updated version of the pylint --list-msgs
.
The format is PYLINT_ERROR_ID: ERROR_MESSAGE.
You can find it buried in the pylint documentation here: https://pylint.pycqa.org/en/latest/technical_reference/features.html#pylint-checkers-options-and-switches