How to disable Pylint error message worldwide?

I am using the Sublime Text editor with Pylint as a Python code parser. It works fine, but whenever I define a variable, I get the following error message (C0103):

Error: Invalid constant name.

I read in this section that one solution can add # pylint: disable-msg=C0103 to the source code, but this solution is not enough for me because I have many variable definitions and I do not want to use my code for calls to Pylint . I need to disable error message C0103 all over the world, in all my Python source files. I have to get rid of this message forever. How can i do this?

+7
error-handling pylint
source share
2 answers

For pylint to automatically pick up your rc file, it must be located in ~/.pylintrc . Otherwise, you need to pass the rc file as an argument every time you call pylint.

+6
source share
 pylint --generate-rcfile > ~/.pylintrc 

Then add "disable": "C0103" to this file.

+6
source share

All Articles