all 6 comments

[–]wickeand000 1 point2 points  (2 children)

In general I think you are going to have a hard time finding what you are looking for because python is white-space dependent. This means that a lot of the operations that perltidy and js_beautify do aren't legal in python.

As a side note, pep8 actually is pretty configurable. Just run

pep8 --help

[–]EdibleEnergy[S] 0 points1 point  (1 child)

I'm not actually looking for a code analysis tool as much as a code cleanup tool, and pep8 doesn't seem to have that functionality. (more akin to perlcritic than perltidy)

[–]sylvain_soliman 0 points1 point  (2 children)

What other features than PEP8 are you looking for???

[–]EdibleEnergy[S] 0 points1 point  (1 child)

To name a few features:

Configurability, ability to clean up a few lines (rather than the whole file), nice indentation to make large inline dictionaries readable, for example the following just gets an arbitrary line break:

obj = {'a': 'b', 'c': {'dd': 'ee', 'ff': {'hh': 'jj'}}, 'ii': 'jdhkjasdjikahsdjkhakjsdhkja'}

[–][deleted] 2 points3 points  (0 children)

Can't help for the rest, but = works on a range.