google/yapf
View on GitHub ↗ ★ 13,987 Python
A formatter for Python files
22 mentions on Hacker News by 22 people: 4 stories, 18 comments · first 2015-03-25 · latest 2025-02-17
20082026
-
…be an "official" Google product, but it's hard to tell what Google considers official or not. [0] https://github.com/google/yapf
comment by mtlynch · 2025-02-17 · in YouTube asks channel owner to verify phone, permanently overwrites personal info -
…llvm.org/devmtg/2013-04/jasper-slides.pdf The YAPF Python formatter is based on this same algorithm - https://github.com/google/yapf The Dart formatter used a model of "chunks, rules, and spans" - https://journal.stuffwithstuff.com/2015/09/…
comment by chubot · 2024-02-20 · in Why is Prettier rock solid? -
See also how yapf defines the Google formatting style: https://github.com/google/yapf/blob/v0.32.0/yapf/yapflib/sty...
comment by vitorsr · 2023-02-11 · in Google Python Style Guide -
https://github.com/google/yapf
comment by dumdumdumdum · 2022-02-08 · in Django: Reformatted code with Black -
A little shoutout to a alternative Python formating tool https://github.com/google/yapf (developed by Google). The built in "facebook style" formating felt by far the most natural to me with the out of the box settings and no extra config.
comment by codingkev · 2022-02-08 · in Django: Reformatted code with Black -
…a long time user of yapf along with isort, yapf is way less opionated and its been good till now. https://github.com/google/yapf
comment by cloverr20 · 2022-01-30 · in Black, the uncompromising Python code formatter, is stable -
…has a runnable console binary we can use in CI. Maybe I haven't looked at it closely enough. [0] https://github.com/google/yapf [1] https://black.readthedocs.io/en/stable/
comment by no_wizard · 2020-02-09 · in Format Python Code Using YAPF -
…https://docs.python.org/3/library/typing.html#typing.NamedTu... [3] https://github.com/psf/black [4] https://github.com/google/yapf [5] https://github.com/PyCQA/pylint/ [6] https://github.com/PyCQA/flake8 [7] https://github.com/pypa/pipenv…
comment by Rotareti · 2019-09-19 · in Python Is Eating the World -
…still have that problem. Thanks for chiming in, you're gonna make my life a lot better haha. [1]: https://github.com/google/yapf/issues/342
comment by camgunz · 2019-05-17 · in Black – Uncompromising Python code formatter -
Yapf- https://github.com/google/yapf
comment by dhuramas · 2018-11-22 · in Still in love with Rust -
How does this compare with Yapf ( https://github.com/google/yapf )?
comment by ra7 · 2018-05-25 · in Black: An uncompromising Python code formatter -
…have been adding specific workarounds for some cases but it's a general issue with the approach: - https://github.com/google/yapf/issues/264 - https://github.com/google/yapf/issues/39 Black algorithm doesn't explode in such way. It's also…
comment by vjeux · 2018-05-25 · in Black: An uncompromising Python code formatter -
…I don't have time to finish it now. This python formatter talked about its algorithm, worth a read. https://github.com/google/yapf
comment by dracodoc · 2017-08-21 · in The Hardest Program I've Ever Written (2015) -
…https://clang.llvm.org/docs/ClangFormat.html [1]: https://github.com/google/google-java-format [2]: https://github.com/google/yapf [3]: https://github.com/rust-lang-nursery/rustfmt
comment by rjeli · 2017-06-20 · in Tabs, spaces and your salary – how is it really? -
I use Google's YAPF [0]. [0]: https://github.com/google/yapf
comment by nikolay · 2016-05-31 · in Pep8 is dead, long live pycodestyle -
Yup, all of this is fairly tricky for YAPF as well ( https://github.com/google/yapf ). We ended up reusing clang-format's algorithm
comment by eliben · 2015-09-10 · in The Hardest Program I've Ever Written -
…ode.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...
comment by Pirate-of-SV · 2015-04-02 · in YAPF – A formatter for Python files -
That is apparently the "google style" 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.
comment by ketralnis · 2015-03-25 · in YAPF – A formatter for Python files