automated pep8 reformatter ?

Ben Finney ben+python at benfinney.id.au
Wed Apr 13 22:03:51 EDT 2011


James Mills <prologic at shortcircuit.net.au> 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 to make a decision and edit the code. So first, introduce a
code scanner that reports PEP 8 violations, such as ‘pylint’.
-- 
 \ “[R]ightful liberty is unobstructed action, according to our |
 `\ will, within limits drawn around us by the equal rights of |
_o__) others.” —Thomas Jefferson, 1819 |
Ben Finney


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /