Skip to main content
edited body; edited tags
Source Link
200_success
  • 9.6k
  • 5
  • 51
  • 64

Python is whitespace dependantdependent, and it can't be totally autoindented for that reason, but there are a lot of extra stuff that should be possible to do automatically to comply with PEP8.

Things like whitespaces around operators, two new lines before a class and one before a method, etc.

Is there any equalprg compatible utility for that? If not, how to program one?

Python is whitespace dependant, and it can't be totally autoindented for that reason, but there are a lot of extra stuff that should be possible to do automatically to comply with PEP8.

Things like whitespaces around operators, two new lines before a class and one before a method, etc.

Is there any equalprg compatible utility for that? If not, how to program one?

Python is whitespace dependent, and it can't be totally autoindented for that reason, but there are a lot of extra stuff that should be possible to do automatically to comply with PEP8.

Things like whitespaces around operators, two new lines before a class and one before a method, etc.

Is there any equalprg compatible utility for that? If not, how to program one?

edited tags
Link
Martin Tournoij
  • 63.3k
  • 26
  • 199
  • 274
Source Link
Khelben
  • 3.3k
  • 2
  • 14
  • 12

equalprg to use for Python

Python is whitespace dependant, and it can't be totally autoindented for that reason, but there are a lot of extra stuff that should be possible to do automatically to comply with PEP8.

Things like whitespaces around operators, two new lines before a class and one before a method, etc.

Is there any equalprg compatible utility for that? If not, how to program one?