ruby74
ruby74

Reputation: 147

Disabling a pylint warning E501. Nothing is working

I know this question has already been asked but none of the solutions I have found are working for me. I want to disable the pylint warning E501, line too long while coding in pydev. I have tried in line comments # pylint: disable=E501 and even #pylint: disable=C3031.

I have made an rc file called standard.rc and put it in the options for pylint in eclipse as described here: How do I disable a Pylint warning? and even went into the rc file and changed the maximum number of characters allowed on a line. But no luck at all!

Upvotes: 6

Views: 13514

Answers (2)

Ángel
Ángel

Reputation: 960

The E501 line too long error comes from pep8, not pylint.

You can run it as pep8 --ignore=E501 to avoid that report (specially if you are already checking long lines with pylint).

Upvotes: 12

schlpr0k
schlpr0k

Reputation: 21

Have you tried just cranking up the max-line-length variable to an absurd number?

Example: pylint --max-line-length=999 ...{rest of the command}

Upvotes: 2

Related Questions