3 ms·
Without some examples from the author (or sinking time into installing/playing with it) it's pretty hard for me to tell what it's actually going to do with the
by geoelectric 12y ago
Without some examples from the author (or sinking time into installing/playing with it) it's pretty hard for me to tell what it's actually going to do with the code.
AutoPEP8 will generally intelligently pick between a standard hanging indent, a deep hanging indent, and an aligned indent. Does this not do so?
Edit: oh, I see. The author's code uses two spaces. Heh.
- ketralnis 12y agoThat is apparently the "google style" https://github.com/google/yapf/blob/master/yapf/yapflib/style.py#L114 https://github.com/google/yapf/blob/master/yapf/yapflib/styl... No option to change the line endings though, and it changes them all to Windows style.
- geoelectric 12y agoI thought about that, but https://google-styleguide.googlecode.com/svn/trunk/pyguide.html https://google-styleguide.googlecode.com/svn/trunk/pyguide.h... makes it pretty clear Google Style is 4 spaces. It's under Python Style Rules | Indentation.