Menu

#564 Full support for pep8 in code formatting

open
nobody
5
2012-02-06
2012-02-06
No

Formatting the code does away with a lot of the problems reported for pep8 violations.

What is missing from the code-formatting preferences is an option to remove the space between a key and the colon in dictionary assignments.
It should be possible to have
a = {'x' : 1, 'y' : 2}
formatted into
a = {'x': 1, 'y': 2}

I think the preference can be called something like 'Remove extraneous whitespace from dictionary assignments'.

And maybe it should be on by default...

My 2 cents, Ronald portier

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.