On 02 novembre 15:25, ferry jeremie wrote:
> Hi,

Hi,
 
> I use your good static analyser.
> However, i use it on a gimp plugin and pylint return this :
> 
> F0401: Unable to import 'gimp'
> F0401: Unable to import 'gimpplugin'
> F0401: Unable to import 'gimpenums'
> 
> 
> The reason is that gimp must be launch to import these ones.
> What the best way to ignore this lines without use this option
> (which may hide me sequences of real errors) :
> 
> --disable=F0401

you may disable the message locally, eg:

  import gimp # pylint: disable=F0401

that should do the trick. Though the best you can do would be to
find where gimp store those modules and properly set your python path
before running pylint, so type inference will work properly.

I'm cc-ing the list where discussion about pylint should go.

Regards,
-- 
Sylvain Thénault                               LOGILAB, Paris (France)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
CubicWeb, the semantic web framework:    http://www.cubicweb.org

_______________________________________________
Python-Projects mailing list
[email protected]
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to