On 06 décembre 14:10, Andrea Crotti wrote: > I got it more or less, I just need to create an argument list and > pass it to Run, > and I can also pass another reporter if I want. > Here is what I get though: > > running ['-i', 'y', '-rn', '-d', > 'W0611,W0612,W0613,R0401,W0401,W0403,W0404,E0104,E0105,E0602,E0601,W0410', > '-e', 'I,W,R,C,E', 'setup.py'] > No config file found, using default configuration > ************* Module setup > W0511: 4,0: TODO: what if this module is having some nasty side effects?? > C0111: 1,0: Missing docstring > C0103: 7,0: Invalid name "config" (should match > (([A-Z_][A-Z0-9_]*)|(__.*__))$) > C0103: 10,0: Invalid name "bindir" (should match > (([A-Z_][A-Z0-9_]*)|(__.*__))$) > C0103: 11,0: Invalid name "scripts" (should match > (([A-Z_][A-Z0-9_]*)|(__.*__))$) > C0103: 14,0: Invalid name "extra_requires" (should match > (([A-Z_][A-Z0-9_]*)|(__.*__))$) > W0142: 20,0: Used * or ** magic > > Where the codes used are quite different from the one I specified, > how is this possible?
you should probably invert -d and -e in your argument list. Also, you'll want to disable categories before enabling some msg ids explicitly. -- 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
