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

2014-11-23 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] RedBaron, a bottom-up refactoring lib/tool for python

2014-11-23 Thread Kay Hayen
Hello Laurent, you wrote: > I think Redbaron might be much better suited to achieve that, it seems. > > Yep, this is totally an use case for it. Actually you can go a level > lower and directly do that with baron by writing a custom "dumper". > Before reading this, I already managed to pretty mu

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

2014-11-22 Thread Laurent Peuch
Hello Kay, > for my coding conventions, which are a bit unusual, to me e.g. this is the > correct function call, if every parameter is passed by keyword argument, > and the "=" signs are aligned on the maximum level. I had looked into > lib2to3, and found it terribly complex to work with visitors,

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

2014-11-22 Thread Kay Hayen
Hello Laurent, for my coding conventions, which are a bit unusual, to me e.g. this is the correct function call, if every parameter is passed by keyword argument, and the "=" signs are aligned on the maximum level. I had looked into lib2to3, and found it terribly complex to work with visitors, to

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] RedBaron, a bottom-up refactoring lib/tool for python

2014-11-17 Thread Laurent Peuch
Hello Eduardo, > My approach was to convert python code to XML (and back to python) > This allow any generic XML tool to be used to manipulate the XML-code, > and then convert back to python without the need to create specific tools. Funny, you aren't the first one I've found who has taken this a

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

2014-11-17 Thread 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 offers a few other advantages. > > > > > > In a perfect

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

2014-11-17 Thread Dave Halter
Sylvain, 2014-11-17 10:01 GMT+01:00 Sylvain Thénault : > On 15 novembre 16:49, Dave Halter wrote: > > Hi Laurent > > Hi Laurent, David, > > > Great to see somebody finally tackling refactoring. > > indeed! > > > I'm answering, because I think we're working on the same issue. But we > have > > fin

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

2014-11-17 Thread Eduardo Schettino
Hi guys, I also have done some work in this area [1]. Well, I didnt get into reactoring yet... Anyway, I thought you might be interested. My approach was to convert python code to XML (and back to python) This allow any generic XML tool to be used to manipulate the XML-code, and then convert back

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

2014-11-17 Thread Sylvain Thénault
On 15 novembre 16:49, Dave Halter wrote: > Hi Laurent Hi Laurent, David, > Great to see somebody finally tackling refactoring. indeed! > I'm answering, because I think we're working on the same issue. But we have > finished two different parts: You have finished a refactoring > implementation

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

2014-11-15 Thread Dave Halter
Hi Laurent Great to see somebody finally tackling refactoring. I'm answering, because I think we're working on the same issue. But we have finished two different parts: You have finished a refactoring implementation and I have finished the static analysis part. I'm the author of Jedi. https://git

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

2014-11-15 Thread Laurent Peuch
Hello everyone, Someone has suggested me to talk about the project I'm working on right now on this mailing list because this has a lot of chances to interest you. This tool is an answer to a frustration that I've had while trying to build tools for python and projects I was working on. While the