I note that I can disable particular messages using a comment. For example, pylint by default complains about variable names of less than three letters. I can suppress that like this:
# pylint: disable=invalid-name
def some_string_operation(s): # (the same thing here would also work)
return something(s)
But I cannot, for example, add s
to the good-names list. This doesn't work:
# pylint: good-names=s
def some_string_operation(s):
return something(s)
So clearly not all options can be modified that way. Which ones can?
In the module comments you can only enable/disable specific PyLint checks:
# pylint: disable=wildcard-import, method-hidden
# pylint: enable=too-many-lines
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