Hacker GitHub

← All repos

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

Mentions per year 22 mentions · busiest year 2015 (6)
20082026
  1. …be an "official" Google product, but it's hard to tell what Google considers official or not. [0] https://github.com/google/yapf
  2. …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?
  3. 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
  4. https://github.com/google/yapf
    comment by dumdumdumdum · 2022-02-08 · in Django: Reformatted code with Black
  5. 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
  6. …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
  7. …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
  8. …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
  9. …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
  10. Yapf- https://github.com/google/yapf
    comment by dhuramas · 2018-11-22 · in Still in love with Rust
  11. How does this compare with Yapf ( https://github.com/google/yapf )?
  12. …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…
  13. …I don't have time to finish it now. This python formatter talked about its algorithm, worth a read. https://github.com/google/yapf
  14. …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
  15. 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
  16. 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
  17. …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
  18. 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