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 Wednesday 17 August à 17:08, Mike Rovner wrote:2005/08/18 11:34
> Hi,
Hi
> I'd like to run pylint without direct access to the (checking)
> filesystem. It means pylint can't just plain open/import file for
> checking, it must do os.popen('<some funky stuff> file_to_check.py').
>
> What source files I need consult first?
The pylint/lint.py module is responsible to get suitable representation
of files/modules to check.
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 -'
--
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
