On Thursday 06 May 2010 19:47:28 Tayssir John Gabbour wrote:
> Hi!
>
> Is there a convenient way to call Pylint from within Python,
I'm not sure if I understand you right: do you want to import the pylint
modules?
$ cat bin/pylint
#!/usr/bin/env python
import sys
from pylint import lint
lint.Run(sys.argv[1:])
> rather than executing it and writing a parser for its text output?
We have a lot of output options :
-f <format>, --output-format=<format>
Set the output format. Available formats are text,
parseable, colorized, msvs (visual studio) and
html [current: text]
-i ...
-r ...
Furthermore, you can enable / disable a lot of messages
with --enable / --disable (in current developpment version and hence the
next release; for the current release, we had several --disable-*
and --enable-* options).
Do you have other needs ?
--
Emile Anclin <[email protected]>
http://www.logilab.fr/ http://www.logilab.org/
Informatique scientifique & et gestion de connaissances
_______________________________________________
Python-Projects mailing list
[email protected]
http://lists.logilab.org/mailman/listinfo/python-projects