Everyone_Else
Everyone_Else

Reputation: 3264

No such message id pylint

When I try to pylint a file by doing pylint fname.py, I get the following error: pylint.utils.UnknownMessage: No such message id E1608. However, 'E1608' is certainly a valid message id; it says so on their website. What are some possible solutions?

The relevant section of my config file is:

[MESSAGES CONTROL] disable=E1608

Upvotes: 0

Views: 1295

Answers (2)

Everyone_Else
Everyone_Else

Reputation: 3264

If you want to disable a message ID instead of a messages, you can do

disable-msg=E1608

Upvotes: 0

Matt Messersmith
Matt Messersmith

Reputation: 13747

It looks like you need

disable=old-octal-literal

The disable flag takes a message, not a message ID, according to the docs. See here for the relevant documentation.

Alternatively, you can put # pylint: disable=old-octal-literal at the top of the file in question if the config file is still giving you problems.

Upvotes: 1

Related Questions