Re:YAPF – A formatter for Python files
by mas1n on Thursday April 02, 2015 @05:03PM
(#9313201)
Interesting to see the formatter is written using 2 space indentation when both pep8 and google's style guides say 4.
[ Parent
| on HN ]
Re:YAPF – A formatter for Python files
by Pirate-of-SV on Thursday April 02, 2015 @05:16PM
(#9313280)
I think the original Python Google Style guide did use 2 spaces.
https://code.google.com/p/soc/wiki/PythonStyleGuide#Indentat...
And it seems like that's used in YAPF as well: https://github.com/google/yapf/blob/master/yapf/yapflib/styl...
Re:YAPF – A formatter for Python files
by geoelectric on Thursday April 02, 2015 @05:22PM
(#9313312)
This was submitted not long ago, and that was pointed out there too.
https://news.ycombinator.com/item?id=9260786
I suggested to the author that they restore "google" style to the public one and rename the existing one to "chromium" style, since that's the most prominent public project still on Google's internal style.