.pylintrc - shutdown error does not work

I get this false positive warning when I run pylintin my code,

E: 56, 7: Instance of 'bool' has no 'status_code' member (but some 
types could not be inferred) (maybe-no-member)

From pylint-site , I see the code for the above error E1103. I added the following code in .pylintrcthe section MESSAGES CONTROLlike,

disable=E1103, E1101

He did not suppress the warning.

It's amazing that the passed flag is explicitly disabled

pylint -E --disable=maybe-no-member filename.py

How can I turn off flags from .pylintrcso that I don’t need to pass them every time?

+4
source share
2 answers

You must use either command line options or a configuration file. This will not work if you use both.

, :

pylint -E --disable=E1103 filename.py

()

: disable = E1103, W, C, F

disable=E1103, C, W, F 
+1

...

-, (E1103), (, -). , . .

-, pylintrc ( ) .

pylintrc , , pylintrc ( " , " pylint). , , --rcfile, .

, --help-msg, (, / ).

+1

All Articles