[Python-projects] pylint / zope
Aurélien Campéas
aurelien.campeas at logilab.fr
Thu Mar 29 17:48:35 CEST 2007
On Thu, Mar 29, 2007 at 05:45:20PM +0200, Aurélien Campéas wrote:
> On Thu, Mar 29, 2007 at 05:44:07PM +0200, Aurélien Campéas wrote:
> > On Thu, Mar 29, 2007 at 04:18:21PM +0100, Miles Waller wrote:
> > > Hi,
> > >
> > > I'm trying to use pylint to examine some code that makes up a zope
> > > product. I get lots of missing module errors because it can't import
> > > some of the modules that zope sets up (even with the --zope=yes
> > > option). I had a google for how to get this to work, but I could only
> > > find old replies. What's the recomended way to get this going with the
> > > most recent version of pylint?
> >
> > Just from the top (bottom ?) of my head: did you add to your
> > PYTHONPATH the various places one typical zope installation spreads
> > modules in ? Note that even doing that, I get a few 'Unable to import'
> > errors, but these are not false positives as far as I can see
> > (PageTemplates and ZCatalog being two examples for my zope 2.9.4
> > installation).
>
> These would be obsolete modules I guess, since I can find them in
> earlier zope versions.
Finally, there's not a lot pylint can do (I guess) in front of :
try:
import SomeModule
except:
import OtherModule
or other conditionalized imports depending on zope version or
whatever. These will invariably raise warnings since pylint does
(afaik) a purely syntactic analysis.
>
> >
> > Cheers,
> > Aurélien.
> >
> > >
> > > Also, one thing I'm particularly interested in is the coverage of the
> > > methods in my application by interfaces. I read that pylint analyses
> > > this, but I can't see an obvious way to get this report - could you give
> > > me a pointer?
> > >
> > > Thanks
> > >
> > > Miles
> > >
> > >
> > > _______________________________________________
> > > Python-Projects mailing list
> > > Python-Projects at lists.logilab.org
> > > http://lists.logilab.org/mailman/listinfo/python-projects
> > >
> > _______________________________________________
> > Python-Projects mailing list
> > Python-Projects at lists.logilab.org
> > http://lists.logilab.org/mailman/listinfo/python-projects
> >
> _______________________________________________
> Python-Projects mailing list
> Python-Projects at lists.logilab.org
> http://lists.logilab.org/mailman/listinfo/python-projects
>
More information about the Python-Projects
mailing list