[Python-projects] How to suppress certain messages permanently

Sylvain Thénault sylvain.thenault at logilab.fr
Sun May 7 00:28:51 CEST 2006


On Tuesday 25 April à 16:43, Meding, Olaf wrote:
> Sylvain
> 
> Is there a way to suppress the two messages shown below in the .pylintrc file?
> 
>   junk.py:34: [I0012] Locally enabling 'E1101'
>   junk.py:40: [I0011] Locally disabling 'E1101'
> 
> I know how to do it on the command line, but I would like to permananetly disable these.
>   pylint --disable-msg=I0011,I0012 junk.py

you can put the disable-msg option in the MASTER section of the pylint
rc file. Generate it using:

  pylint --disable-msg=I0011,I0012 --generate-rcfile > ~/.pylintrc

-- 
Sylvain Thénault                               LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian:  http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
Python et calcul scientifique:           http://www.logilab.fr/science



More information about the Python-Projects mailing list