Hacker ApprovedDepartments

Black

Hacker Approved

Shares rank 2 of 7 code formatters by recommenders

Opinionated Python formatter that ends style debates with one consistent, stable layout. Common caveat: it sometimes collapses lines against intended formatting, hurting readability.

Opinionated Python formatter that ends style debates with one consistent, stable layout. Common caveat: it sometimes collapses lines against intended formatting, hurting readability.

24 people gave an opinion

recommend it
18
criticize it
6
approval share
75%
Each figure is one person. RecommendsCriticizes

Recommended in 6 of 13 months

  1. November 2025: recommended
  2. December 2025: not recommended
  3. January 2026: not recommended
  4. February 2026: not recommended
  5. March 2026: recommended
  6. April 2026: not recommended
  7. May 2026: recommended
  8. June 2026: not recommended
  9. July 2026: recommended
  10. August 2026: recommended
  11. September 2026: not recommended
  12. October 2026: recommended
  13. November 2026: not recommended (month in progress)

Why it carries the badge

  • 18 people recommend itNeeds 10 or more, met.
  • 3 recommenders for every criticNeeds 2 to 1 or better, met.
  • Recommended in 6 of 13 monthsNeeds 4 or more, met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Consistent style ends review debates

    “it was surprising how much time we reclaimed from not having to review coding style”

    Comment from 13 Aug 2026 in “Process as a Proxy for Motivation”

    “I find the black/ruff formatting style in Python to be very consistent, which helps with git blame.”

    Comment from 4 Nov 2025 in “At the end you use `git bisect`”

    “Consistency is key for readability”

    Comment from 12 Nov 2025 in “Collaboration sucks”
  • Stable, set-and-forget formatting

    “These tools are some of the most set it and forget it things around.”

    Comment from 26 Jul 2026 in “Ruff v0.16.0 – Significant new updates – 413 default rules up from 59”

    “Black's been stable for the past 4+ years.”

    Comment from 26 Jul 2026 in “Ruff v0.16.0 – Significant new updates – 413 default rules up from 59”

    “Use black as format on save and you will never have a problem with that.”

    Comment from 8 May 2026 in “Mojo 1.0 Beta”
  • Pairs well with Ruff

    “I use black/ruff on a lot of projects and it will only touch standard-y things like docstring spacing”

    Comment from 20 Oct 2026 in “SlopCodeBench 10/2026 – Opus 5.5, Astra wins overall, xhigh considered harmful”

    “Ruff/black support and enforce this.”

    Comment from 26 Jul 2026 in “Ruff v0.16.0 – Significant new updates – 413 default rules up from 59”

What people warn about

Each mark is one comment

  • Collapses lines against intended layout

    “always moving things back to one line, making them less readable”

    Comment from 26 Jul 2026 in “Ruff v0.16.0 – Significant new updates – 413 default rules up from 59”

    “IMO it's insane to collapse lines when there are line comments”

    Comment from 26 Jul 2026 in “Ruff v0.16.0 – Significant new updates – 413 default rules up from 59”

    “it breaks intends of formatting more often than it helps”

    Comment from 26 Jul 2026 in “Ruff v0.16.0 – Significant new updates – 413 default rules up from 59”

Other code formatters people recommend

The four most recommended other code formatters, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

Black compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
gofmt26584%10—Approved
BlackThis page18675%6—Approved
FracturedJson18290%2——
Prettier161062%8——
Oxfmt14961%6——
See all 7 code formatters, ranked

What people said

21 of the 24 comments that mention it, newest first. Each links to the original comment.

“I use black/ruff on a lot of projects and it will only touch standard-y things like docstring spacing”

RecommendsComment from 20 Oct 2026 in “SlopCodeBench 10/2026 – Opus 5.5, Astra wins overall, xhigh considered harmful”

“specifically because it has no configurable options”

RecommendsComment from 14 Oct 2026 in “Iosevka is an open-source, sans-serif and slab-serif monospace font”

“it was surprising how much time we reclaimed from not having to review coding style”

RecommendsComment from 13 Aug 2026 in “Process as a Proxy for Motivation”

“it would never get in my way the way black or ruff would regularly”

CriticizesComment from 26 Jul 2026 in “Ruff v0.16.0 – Significant new updates – 413 default rules up from 59”

“always moving things back to one line, making them less readable”

CriticizesComment from 26 Jul 2026 in “Ruff v0.16.0 – Significant new updates – 413 default rules up from 59”

“Ruff/black support and enforce this.”

RecommendsComment from 26 Jul 2026 in “Ruff v0.16.0 – Significant new updates – 413 default rules up from 59”

“IMO it's insane to collapse lines when there are line comments”

CriticizesComment from 26 Jul 2026 in “Ruff v0.16.0 – Significant new updates – 413 default rules up from 59”

“No one likes black formatting, but it's at least consistent.”

RecommendsComment from 26 Jul 2026 in “Ruff v0.16.0 – Significant new updates – 413 default rules up from 59”

“These tools are some of the most set it and forget it things around.”

RecommendsComment from 26 Jul 2026 in “Ruff v0.16.0 – Significant new updates – 413 default rules up from 59”

“Black's been stable for the past 4+ years.”

RecommendsComment from 26 Jul 2026 in “Ruff v0.16.0 – Significant new updates – 413 default rules up from 59”

“it breaks intends of formatting more often than it helps”

CriticizesComment from 26 Jul 2026 in “Ruff v0.16.0 – Significant new updates – 413 default rules up from 59”

“None of these tools catch that.”

CriticizesComment from 26 Jul 2026 in “Ruff v0.16.0 – Significant new updates – 413 default rules up from 59”

“Black's default, which I like, has it keep any vertical spacing of comma separated things”

RecommendsComment from 29 May 2026 in “Various LLM Smells”

“It will save you 99% of headaches.”

RecommendsComment from 12 May 2026 in “If AI Writes Your Code, Why Use Python?”

“black's pretty good and definitely better than nothing”

RecommendsComment from 8 May 2026 in “Mojo 1.0 Beta”

“Use black as format on save and you will never have a problem with that.”

RecommendsComment from 8 May 2026 in “Mojo 1.0 Beta”

“move from Ruff back to black and stay the course”

RecommendsComment from 20 Mar 2026 in “Astral to Join OpenAI”

“Those files became essentially unmergable from then on.”

MixedComment from 14 Mar 2026 in “Don't post generated/AI-edited comments. HN is for conversation between humans.”

“much faster that what we used before”

CriticizesComment from 20 Jan 2026 in “Ask HN: What non-LLM tools have meaningfully improved your dev productivity?”

“Consistency is key for readability”

RecommendsComment from 12 Nov 2025 in “Collaboration sucks”

“I find the black/ruff formatting style in Python to be very consistent, which helps with git blame.”

RecommendsComment from 4 Nov 2025 in “At the end you use `git bisect`”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.