I see some code with
# pylint: disable=W0123
and some has
# pylint: disable-msg=W0123
Are they just synonyms?
you can ignore it by adding a comment in the format # pylint: disable=[problem-code] at the end of the line where [problem-code] is the value inside pylint(...) in the pylint message – for example, abstract-class-instantiated for the problem report listed above.
What is Pylint? It is a static code analysis tool to identify errors in Python code and helps programmers enforce good coding style. This tool enables them debugging complex code with less manual work. It is one of the tools which gets used for test-driven development (TDD).
How do I get rid of invalid name pylint? Create an empty Python file called run-tests.py. At the top of the file, add # pylint: disable=invalid-name so that pylint won't complain about the module name.
disable-msg is deprecated as of pylint 0.21.0. Update it to just "disable" when older versions don't need to be supported anymore.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With