On 03 août 00:43, Gelonida wrote: > Hi, Hi, > occasionally we'd like to run pylint on quite many files. > > If doing this the naive way > (running a python scipt with os.walk calling then python with pylint) > under windows, then quite some time is spent on starting and stopping > new executables. > > Is there a simple way of running pylint on many files without having to > start python for each check. > > Additionally I would only be interested in the amount of errors, the > amount of warnings and coding style violations and the overal score.
You can easily run pylint programmatically. See pylint.lint.Run class (its __init__ method actually). You can then easily give a custom reporter that only display what you're interested in. -- Sylvain Thénault LOGILAB, Paris (France) Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations Développement logiciel sur mesure: http://www.logilab.fr/services CubicWeb, the semantic web framework: http://www.cubicweb.org _______________________________________________ Python-Projects mailing list [email protected] http://lists.logilab.org/mailman/listinfo/python-projects
