[wingide-users] PEP-8 reformatting

Chris Curvey ccurvey at gmail.com
Tue Apr 8 12:47:13 MDT 2008


On Tue, Apr 8, 2008 at 12:29 PM, Wingware Support <support at wingware.com>
wrote:

> 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.


But what might be cool would be a PEP-8 checker (kinda like the way Wing
puts up yellow underlines when you have inconsistent, but still valid,
indentations.

>
>
> --
>
> Stephan Deibel
> Wingware | Python IDE
> Advancing Software Development
>
> www.wingware.com
>
>
> _________________________________________________
> Wing IDE users list
> http://wingware.com/lists/wingide
>



-- 
I am often wrong, but I am never in doubt.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/wingide-users/attachments/20080408/2a5cafa0/attachment.html


More information about the wingide-users mailing list