On 08 décembre 11:14, Andrea Crotti wrote: > On 12/07/2011 07:38 AM, Sylvain Thénault wrote: > >astng may be used to write down python code, though it will be > >tricky to deal with formatting (spaces, eol, comments...). > > Yes I'm sure it's not trivial.. Anyway would it be possible to > actually get the AST generated code in my custom reporter? > In this way it would be actually possible to do some extra checks in > case I want to try to modify things only > when they are actually discovered..
Unfortunatly reporter only get bare messages, no ast nodes. To achieve such things, I would go with an approach starting from pylint messages in a parseable format to feed the program which would load needed astng, then do changes that seems ok. -- 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
