Re: [code-quality] Static checker for common Python programming errors

2014-11-18 Thread Steven D'Aprano
On Mon, Nov 17, 2014 at 05:18:03PM +, Stefan Bucur wrote: > I wanted first to tap into people's experience and get a sense of what > common pitfalls in the language & its standard library such a static > checker should look for. [...] > * Proper Unicode handling (for 2.x) > - encode() is not

Re: [code-quality] Static checker for common Python programming errors

2014-11-18 Thread Dave Halter
Hi Stefan I'm playing with this as well in Jedi. I'm pretty far with flow analysis and AttributeErrors. (This includes everything you mention above except integer division by zero). Would be easy to implement in Jedi, though. I just have different priorities, at the moment. If you have some time

Re: [code-quality] RedBaron, a bottom-up refactoring lib/tool for python

2014-11-18 Thread Dave Halter
2014-11-17 21:00 GMT+01:00 Laurent Peuch : > Hello everyone and thanks for your answers :) > > > > > I'm currently working on the integration of the lib2to3 parser into > Jedi. > > > > This would make refactoring really easy (I'm about 50% done with the > > > > parser). It's also well tested and o

Re: [code-quality] Static checker for common Python programming errors

2014-11-18 Thread Claudiu Popa
On Mon, Nov 17, 2014 at 7:18 PM, Stefan Bucur wrote: > I'm developing a Python static analysis tool that flags common programming > errors in Python programs. The tool is meant to complement other tools like > Pylint (which perform checks at lexical and AST level) by going deeper with > the code a