2 ms·
Interesting to see the formatter is written using 2 space indentation when both pep8 and google's style guides say 4.
by mas1n 12y ago
Interesting to see the formatter is written using 2 space indentation when both pep8 and google's style guides say 4.
- Pirate-of-SV 12y agoI think the original Python Google Style guide did use 2 spaces. https://code.google.com/p/soc/wiki/PythonStyleGuide#Indentation 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/style.py#L122 https://github.com/google/yapf/blob/master/yapf/yapflib/styl...
- geoelectric 12y agoThis was submitted not long ago, and that was pointed out there too. https://news.ycombinator.com/item?id=9260786 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.