[Python-projects] pylint: Locally disabling R0801

Maarten ter Huurne maarten at treewalker.org
Fri Dec 19 14:47:30 CET 2008


On Thursday 18 December 2008, Rasener, Dustin M wrote:

> I have tried to locally disable message R0801 (similar lines in X
> files), with no success.
>
> I have tried placing this line in __init__() for the package; I have
> also tried placing it above the offending (similar) lines.
>
> # pylint: disable-msg=R0801
>
> Can anyone help me to get this message locally disabled?

How local is "locally"? For one module (source file)? For one project?

Disabling the message for a project is possibly by making a "pylintrc" file:
	pylint --generate-rcfile > pylintrc
Then in the "pylintrc" file, look for the "disable-msg=" line and add 
"R0801" there.

Bye,
		Maarten




More information about the Python-Projects mailing list