[wingide-users] PEP-8 reformatting

Wingware Support support at wingware.com
Tue Apr 8 10:29:55 MDT 2008


Paul Sijben wrote:
> Is there a way to have WingIDE reformat my code to comply with PEP-8?

There isn't a tool in Wing to do specifically this, although the Indentation
tool may be useful for converting to 4-space indentation from another style,
the Editor / Line Wrapping / Edge Markers pref may be useful for seeing
79-char line limit, and Wing can handling savings files in other encodings
(best done w/ encoding comment, but also possible w/ File Properties).

A PEP-8 prettifier/converter isn't a bad idea, although even with such a tool
I'd personally be hesitant to reformat old code just to comply with PEP-8 (or
any standard).  It creates a huge bump in the revision control history of the
code that makes it hard to compare versions across the formatting change.

-- 

Stephan Deibel
Wingware | Python IDE
Advancing Software Development

www.wingware.com



More information about the wingide-users mailing list