[Python-projects] Supress checknig of imported module?
Sylvain Thénault
sylvain.thenault at logilab.fr
Thu Nov 20 16:24:50 CET 2008
On Thu, Nov 20, 2008 at 03:22:24PM +0100, Dalton, Tom wrote:
> Hi,
hi,
> I'm using omniORBpy to make remote calls on a server. The omniIDL compiler generates python modules that set themselves up dynamically when they are imported. So when I import the generated file into my code and run pylint, it moans all over the place that the imported module does not have the attributes that i'm using.
>
> For example, if I have code something like:
>
> import omniDerivedThing
> val = omniDerivedThing.anEnumConstant
>
> Then pylint will show an E1101 'object omniDerivedThing has no attribute anEnumConstant'
>
> As you can imagine, this gets rather annoying when I use omniDerivedThing a lot. I don't want to globally supress E1101 and I dont want to supress the error on ever line where I use omniDerivedThing. Is there a way to tell pylint to ignore a particular imported module? I looked at the --ignore= command line option but that didn't seem to work - I assume that just prevents pylinting that file, rather than things that are using that file.
huum, in that case the option is misnamed, but have you tried ignored-classes ?
--
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