Ruff

Fast Python linter and code formatter written in Rust, made by Astral.

HN commenters like Ruff for fast Python linting and formatting in a single tool1234 and as a standard check that coding agents are told to run.56 Complaints are few: one commenter finds the CLI fragmented across ruff and uv,7 and another says agents get confused when ruff changes files outside their context.8
The HN verdict, written from 8 cited comments
15recommend
0warn against
Nov 30, 2025first mention
Oct 24, 2026latest mention
Nov 25 – Oct 26
Used forfor Python developersfor AI coding agentsfor Django projectsfor Rust tool builderspython lintingpython linting and formatting

Why people recommend it

Speed · 3

Commenters say Ruff is much faster than older Python tools and can lint in seconds or less.

“Ruff can lint in seconds or even sub second.”

“I definitely appreciate a 16x speedup if possible.”

Show 1 more

“Ruff solved python formatting and linting.”

Linting and formatting · 3

One tool replaces black, pylint and similar tools, and commenters call it a default in their setups.

“Ruff solved python formatting and linting.”

“uv and ruff took over because they were in many ways simpler and much faster than the competition.”

Show 1 more

“Virtually every modern python developer uses an auto formatter today, and never needs to think about it (ruff, black).”

Sensible formatting · 3

It keeps commented items on their own lines and leaves intentional spacing alone.

“ruff sees your line comment and keeps each item on its line.”

“With agents it is helpful to make them run ruff and mypy to keep them honest”

Show 1 more

“Personally I love this rule because it saves me from looking at one extra commit”

Agent guardrails · 3

Commenters have coding agents run Ruff to keep generated code consistent.

“With agents it is helpful to make them run ruff and mypy to keep them honest”

Show 1 more

“I therefore build one (imperfectly, based on ruff lints), but it solved the problem entirely.”

Works on an internal system with coding agentson “Functional State Machines in Rust: Typestate and New…”

Reusable crates · 2

Its Rust parser and AST crates are reused by other projects for their speed.

“I used rust 'cause of Ruff. They have an outstanding set of crates”

built Weftswitched from Python ast and symtableon “Show HN: Weft – A reactive and interactive Python ex…”

Code quality rules · 1

Newer rule sets caught issues that earlier versions missed.

“the new rules do improve code quality. It caught quite a few things previous versions didn't.”

Caveats and dissent

Fragmented CLI · 1

Ruff, ty and uv split commands awkwardly, and uv's format command gives different results.

“I love Astral’s tools, but I wonder why the CLI feels so fragmented.”

Agent context · 1

Running Ruff outside an agent's loop changes files and confuses the agent.

“I use ruff and my agents get confused if I edit and run ruff out of band.”

Often compared with

Who recommends it in their own words

All comments 19

“I think Ruff is great”

“uv and ruff took over because they were in many ways simpler and much faster than the competition.”

“I love Astral’s tools, but I wonder why the CLI feels so fragmented.”

“With agents it is helpful to make them run ruff and mypy to keep them honest”

“I use ruff and my agents get confused if I edit and run ruff out of band.”

“I therefore build one (imperfectly, based on ruff lints), but it solved the problem entirely.”

Works on an internal system with coding agentson “Functional State Machines in Rust: Typestate and New…”

“Virtually every modern python developer uses an auto formatter today, and never needs to think about it (ruff, black).”

“ruff sees your line comment and keeps each item on its line.”

“Personally I love this rule because it saves me from looking at one extra commit”

“Ruff can lint in seconds or even sub second.”

“the new rules do improve code quality. It caught quite a few things previous versions didn't.”

“I immediately set up up ruff, ty, pytest, pre-commit hook”

“Ruff solved python formatting and linting.”

“I definitely appreciate a 16x speedup if possible.”

“I used rust 'cause of Ruff. They have an outstanding set of crates”

built Weftswitched from Python ast and symtableon “Show HN: Weft – A reactive and interactive Python ex…”

“This newly-minted fanboy recommends you try out ty w/ uv & ruff!”

Threads where it came up

Also written as ruff. Data: ruff.json. Quotes are verbatim; the verdict and theme labels are written by a model from these comments, and every clause links to its sources.

Keyboard shortcuts
j / kNext / previous item
o or EnterOpen selected item
/Search
g hHome
g tTop
g rRising
g cCategories
tToggle dark mode
?This help