Hacker GitHub

← All repos

psf/black

View on GitHub ↗ ★ 42,094 Python

The uncompromising Python code formatter

84 mentions on Hacker News by 80 people: 15 stories, 69 comments · first 2018-03-14 · latest 2026-09-30

Mentions per year 84 mentions · busiest year 2019 (16)
20082026
  1. …to see how EPython compares to mypyc. [0] https://github.com/python/mypy/tree/master/mypyc [1] https://github.com/psf/black/pull/1009
    comment by Rotareti · 2020-10-22 · in Attempts to make Python fast
  2. If you’re into python, check out black https://github.com/psf/black
  3. …such as minimizing lines changed as code evolves. > I don’t want to compromise PEP 8 though. [1]: https://github.com/psf/black/issues/48 [2]: https://github.com/psf/black/issues/1178 [3]: https://github.com/psf/black/issues/1336 [4]:…
    comment by soulmerge · 2020-04-15 · in Python programming is drowning in red tape
  4. …decisions / preferences, is not a good look. Neither is throwing temper tantrums in issue threads: https://github.com/psf/black/issues/1178#issuecomment-565383... Also if this developer wasn't so obsessed with bikeshedding, they could just…
    comment by micimize · 2020-04-15 · in Python programming is drowning in red tape
  5. …formatting ( https://docs.fast.ai/dev/style.html#layout ). Maybe I am too used to PEP-8 and black ( https://github.com/psf/black ) formatted code, but honestly I cannot stand the code format.
  6. Precisely why I use them and why I'm uncomfortable with Black refusing to add the option ( https://github.com/psf/black/pull/513 ).
    comment by scrollaway · 2020-02-09 · in Format Python Code Using YAPF
  7. …you cannot customise it. Has been a great experience since the day I switched from autopep8. [0] https://github.com/psf/black
    comment by grenoire · 2020-01-17 · in Letting tools make choices
  8. ▲ 3
    First stable release of Black: the uncompromising Python code formatter
    story by cataflam · 2019-10-29 · 0 comments
  9. …[2] 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.co
    comment by Rotareti · 2019-09-19 · in Python Is Eating the World
  10. …from https://github.com/pre-commit/pre-commit-hooks plus https://github.com/asottile/pyupgrade plus https://github.com/psf/black plus maybe the mypy and flake8 hooks. These hooks are also run in a "lint" stage by by tox, which is also run…
    comment by mmmrk · 2019-08-27 · in How to set up a perfect Python project
  11. …Long lines also make it harder to present code neatly in documentation or talk slides." [0] https://github.com/psf/black
    comment by chimprich · 2019-08-12 · in Python Is Eating the World
  12. …the feature that's forcing that behavior. So, again: f-strings have saved me a ton of tedium. [0] https://github.com/python/black
    comment by stefco_ · 2019-07-17 · in What's Coming in Python 3.8
  13. …reasoning for not including tabs as an option is that "tabs for indentation are the devil". https://github.com/python/black/issues/47
  14. Python has a code formatter named Black after Ford's quote and is almost uncustomisable. https://github.com/python/black
  15. …of the open PR to explode collections if there is a trailing comma[0], which feels... wrong. [0] https://github.com/python/black/pull/826
    comment by frosted-flakes · 2019-05-17 · in Black – Uncompromising Python code formatter
  16. …pylint on the same codebase runs into this issue: * https://github.com/PyCQA/pylint/issues/289 * https://github.com/python/black/issues/48
    comment by neuronexmachina · 2019-05-17 · in Black – Uncompromising Python code formatter
  17. …is being addressed [0] in Black and is expected to be resolved before Black becomes stable. [0] https://github.com/python/black/pull/826
  18. …id: reorder-python-imports args: [--application-directories=gaia] language_version: python3 - repo: https://github.com/ambv/black rev: stable hooks: - id: black language_version: python3 - repo: local hooks: - id: eslint name: eslint…
    comment by andrewljohnson · 2019-05-17 · in Black – Uncompromising Python code formatter
  19. Black's README explains how to do it: https://github.com/python/black#version-control-integration
  20. …and it's easier than setting up and maintaining your own hooks IMO) [0] https://pre-commit.com/ [1] https://github.com/python/black/blob/master/README.md#versio...
  21. It’s been available that way for over a year: https://github.com/python/black/blob/master/plugin/black.vim
  22. ▲ 407
    Black – Uncompromising Python code formatter
    story by collinmanderson · 2019-05-17 · 244 comments
  23. …/ integration tests as part of your merge request... Now a days there are even things like black [ https://github.com/ambv/black ] that does auto formatting just like gofmt.
    comment by aprdm · 2019-01-23 · in Let’s stop copying C (2016)
  24. Yes. Most of the projects now use black https://github.com/ambv/black
    comment by sametmax · 2018-11-22 · in Still in love with Rust
  25. Black (The uncompromising Python code formatter) is all the rage atm. https://github.com/ambv/black
    comment by eirki · 2018-11-22 · in Still in love with Rust
  26. ▲ 1
    Ask HN: What are some useful pre-commit hooks?
    story by theSage · 2018-10-30 · 1 comment
  27. …difficult in many languages that weren't designed around the concept. Here's Black for python: https://github.com/ambv/black I'm not sure if my future co-workers would kill me or not for using it on projects.
    comment by greglindahl · 2018-08-26 · in Tabs vs. spaces and other holy wars
  28. FWIW Black ( https://github.com/ambv/black ) is a disciplined Python formatter that's reasonably successful, so I'm not convinced that the "significant indentation" thing actually matters too much; it probably just means that formatters…
  29. …gaining so much traction so quickly, and thanks for listening to users (when it makes sense). [0] https://github.com/ambv/black/issues/67
  30. ▲ 447
    Black: An uncompromising Python code formatter
    story by kumaranvpl · 2018-05-25 · 255 comments
  31. ▲ 1
    Black: The uncompromising Python code formatter
    story by cocoflunchy · 2018-05-12 · 0 comments
  32. …was a horse, I would find your bot charming. Speaking of linters, lately I've been using [Black]( https://github.com/ambv/black ) for my Python. Its self-description in that Readme sold me on it instantly. I wish you well with this! It is…
  33. ▲ 3
    The uncompromising Python code formatter
    story by adparadox · 2018-03-19 · 0 comments
  34. ▲ 1
    Black: Python Code Formatter (for Humans?)
    story by kennethreitz · 2018-03-14 · 0 comments