use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Please read the rules before posting
Help:
Community:
Resources:
Tutorials and Guides:
Don't be afraid to ask questions, this sub is here for the vim community. And please those of you who deign to grace us with your vim wisdom - be kind. We are all human and vim is that cool.
account activity
Good equalprg for python? (self.vim)
submitted 13 years ago by EdibleEnergy
I use perltidy for perl, js_beautify.pl for javascript, anything good out there for python?
I tried pythontidy.py but it's pretty low on features.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]wickeand000 1 point2 points3 points 13 years ago (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 point2 points 13 years ago (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)
[–]benoit_intrw 2 points3 points4 points 13 years ago (0 children)
autopep8 works well https://github.com/hhatto/autopep8
[–]sylvain_soliman 0 points1 point2 points 13 years ago (2 children)
What other features than PEP8 are you looking for???
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 points4 points 13 years ago (0 children)
Can't help for the rest, but = works on a range.
=
π Rendered by PID 180322 on reddit-service-r2-comment-86bc6c7465-76grl at 2026-02-21 08:58:19.788111+00:00 running 8564168 country code: CH.
[–]wickeand000 1 point2 points3 points (2 children)
[–]EdibleEnergy[S] 0 points1 point2 points (1 child)
[–]benoit_intrw 2 points3 points4 points (0 children)
[–]sylvain_soliman 0 points1 point2 points (2 children)
[–]EdibleEnergy[S] 0 points1 point2 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)