from
Sylvain Thénault <sylvain.thenault at logilab dot fr>
to
Mike Rovner <mrovner at propel dot com>
subject
Re: [Python-projects] running pylint in a specian environment
date
On Thursday 18 August à 14:38, Mike Rovner wrote:2005/08/19 09:52
> Sylvain Thénault wrote:
> >The logilab/common/astng/builder.py contains the ASTNGBuilder class,
> >which has a string_build method will also probably be needed.
> >
> >However, the quickest approach is probably to make a tiny script
> >wrapping pylint to make the preprocessing first, writing the result to a
> >file, and calling pylint on it. Another idea is to make pylint accept a
> >"-" argument, telling him to parse the standard input so you'll be able
> >to do '<some funky stuff> file_to_check.py | pylint -'
>
> I already saw logilab.common.fileutils.norm_open. It's used to open the
> file to be checked.
>
> I replaced __builtin__.open with my svn_open and it seems to be working.
> At least I see no more module not found errors.
that's quite a radical hack ;), but really efficient as long as you don't
need to use the same pylint on usual files/modules.
--
Sylvain Thénault LOGILAB, Paris (France).
http://www.logilab.com http://www.logilab.fr http://www.logilab.org
_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects
