James Mills writes:
> Does anyone know of a tool that will help with
> reformatting badly written code to be pep8 compliant ?
>
> a 2to3 for pep8 ?
>
What I daily and with great happiness use is flymake-mode in emacs.
Combined with pylint, pep8 and pychecker I can see while I'm programming
all t
On Thu, Apr 14, 2011 at 1:06 PM, Ben Finney wrote:
> Most of those don't have sensible automated responses. There aren't good
> automatic answers to “where should this line of code be broken to fit
> within 80 columns?” or “where should this end-line comment go instead?”.
And of course you are qu
James Mills writes:
> What I really want is to fix up common "poor" (IHMO) coding styles
> in code that I have to maintain/review/etc. Things like:
> * Lines longer than 80 characters
> * Comments tacked on to the end of statements/expressions
> * Use of ' vs. "
> * More liberal use of Whitespace
On Thu, Apr 14, 2011 at 12:03 PM, Ben Finney wrote:
> A step forward might be the ‘reindent.py’ program included with the
> Python distribution.
I have tried to use this tool - but it lacks certain features.
Maybe I could use this as a starting point in writing such a tool :)
What I really want
James Mills writes:
> Does anyone know of a tool that will help with reformatting badly
> written code to be pep8 compliant ?
A step forward might be the ‘reindent.py’ program included with the
Python distribution.
Many PEP 8 violations can't be automatically fixed, they require the
programmer
On Thu, Apr 14, 2011 at 11:47 AM, James Mills
wrote:
> Does anyone know of a tool that will help with
> reformatting badly written code to be pep8 compliant ?
>
> a 2to3 for pep8 ?
In case there is no such tool (And I don't have the time to write one)
I've found this to be really useful (so far):
Does anyone know of a tool that will help with
reformatting badly written code to be pep8 compliant ?
a 2to3 for pep8 ?
cheers
James
--
-- James Mills
--
-- "Problems are solved by method"
--
http://mail.python.org/mailman/listinfo/python-list