Pylint ignores specific names

I have a problem with pylint, i.e. sometimes it repeats the same message for some parameter / class / module, etc., and I cannot find a workaround for this. I want to say pylint "do not check [message XXX | any message] for the variable YYY in [this module | module" ZZZ "]" with some option or rcfile directive.

+3
source share
3 answers

What you are asking for is not supported in the current version of Pylint.

You might want to contact the maintainers and offer them a feature request and implementation.

+3
source

According to the docs, you enable and disable messages using lines such as:

# pylint: disable=W0631 

in python code.

+4
source

Here good-names=YYY , or for some advanced elements you can change the regular expression with variable-rgx .

+1
source

All Articles