astral-sh/ruff
View on GitHub ↗ ★ 50,393 Rust
An extremely fast Python linter and code formatter, written in Rust.
79 mentions on Hacker News by 68 people: 9 stories, 70 comments · first 2022-08-30 · latest 2026-10-26
20082026
-
…Ty (the type checker maintained by astral) however will apparently support the TSP: https://github.com/astral-sh/ruff/discussions/23432
comment by nikolatt · 2026-10-26 · in Type Server Protocol -
…the original post > Ruff's default rule set was last modified in v0.1.0 Which was over 2 years ago. https://github.com/astral-sh/ruff/releases/tag/v0.1.0
comment by gcarvalho · 2026-07-26 · in Ruff v0.16.0 – Significant new updates – 413 default rules up from 59 -
…Rust too; rustpython-ruff_python_parser: https://crates.io/crates/rustpython-ruff_python_parser .. https://github.com/astral-sh/ruff LibCST: https://github.com/Instagram/LibCST
comment by westurner · 2026-07-26 · in Ruff v0.16.0 – Significant new updates – 413 default rules up from 59 -
…the interpreter will just ignore them as they are meant to be used by external tools such as ruff: https://github.com/astral-sh/ruff I've had a good experience developing small to medium sized Python programs/scripts using type annotations…
comment by etaweb · 2026-07-09 · in TypeScript 7 -
Based on their tracking issue, Ruff is missing 156 out of 397 Pylint checks: https://github.com/astral-sh/ruff/issues/970 Though some of them will presumably be covered by Ty
comment by optionalsquid · 2026-06-19 · in Fable Converted Pylint to Rust -
…https://docs.rs/littrs-ruff-python-ast/latest/ruff_python_as... src: ruff/crates/ruff_python_ast: https://github.com/astral-sh/ruff/tree/main/crates/ruff_pyth... ast.toml, generate.py, Cargo.toml, src/…
comment by westurner · 2026-06-17 · in Making ast.walk 220x Faster -
▲ 3
Avoid unnecessary parser lookahead for operatorsstory by tosh · 2026-05-21 · 0 comments
-
Ruff is performant but finds about half the issues Pylint does (see https://github.com/astral-sh/ruff/issues/970 ). Ty is quantitatively the worst of the well-known type checkers (see https://news.ycombinator.com/item?id=47398023 ). Uv is…
comment by FreakLegion · 2026-03-19 · in Astral to Join OpenAI -
…and I definitely appreciate a 16x speedup if possible. [1] https://github.com/astral-sh/uv [2] https://github.com/astral-sh/ruff
comment by sebtron · 2026-01-14 · in Is Rust faster than C? -
Glad you like it. I used rust 'cause of Ruff. They have an outstanding set of crates https://github.com/astral-sh/ruff/tree/main/crates The ones I use: - python_parser, allows me to load the python source code and detect any parsing errors…
comment by zeapo · 2026-01-03 · in Show HN: Weft – A reactive and interactive Python experience -
…[1] https://github.com/astral-sh/ty/issues/1968 [2] https://github.com/astral-sh/ty/issues/1993 [3] https://github.com/astral-sh/ruff/pull/22030
comment by dcreager · 2025-12-19 · in Announcing the Beta release of ty -
…it is, and that lets us wait to make sure there aren't any last-minute changes to the syntax. [1] https://github.com/astral-sh/ruff/blob/0bd7a94c2732c232cc142... [2] https://github.com/astral-sh/ruff/blob/0bd7a94c2732c232cc142...
comment by dcreager · 2025-12-17 · in Announcing the Beta release of ty -
…planning to add dedicated Django support at some point, but it's not on our short-term roadmap [1] https://github.com/astral-sh/ruff/pull/21308#issuecomment-35...
comment by selcuka · 2025-12-17 · in Announcing the Beta release of ty -
I think that's because most of the code for `ty` is tucked away in the `ruff` codebase: https://github.com/astral-sh/ruff/tree/main/crates/ty - it's all MIT licensed.
comment by simonw · 2025-12-16 · in Announcing the Beta release of ty -
…source, the layout is just indirect at the moment because of code-sharing between the tools. [1]: https://github.com/astral-sh/ruff
comment by woodruffw · 2025-12-16 · in Announcing the Beta release of ty -
Not impressed because when tried ruff, and discovered that it doesn't replace (basic) pylint check https://github.com/astral-sh/ruff/issues/970 so we have ruff then pylint (and looking at the number of awaiting PR of ruff feels bad)
comment by almanael · 2025-12-16 · in Announcing the Beta release of ty -
▲ 2
We adopt an approach I'll call "Thanks I Hate It (TIHI)"story by Redoubts · 2025-09-25 · 0 comments
-
We already develop a formatter: Ruff ( https://github.com/astral-sh/ruff ). Ruff and uv are built by the same team. `uv format` is just an optional front-end to `ruff format`.
comment by charliermarsh · 2025-08-22 · in Code formatting comes to uv experimentally -
It's in the documentation: https://docs.astral.sh/ruff/faq/#how-does-ruffs-linter-compa... https://github.com/astral-sh/ruff/issues/970
comment by js2 · 2025-06-24 · in uv: An extremely fast Python package and project manager, written in Rust -
…ruff first, followed by pylint. https://docs.astral.sh/ruff/faq/#how-does-ruffs-linter-compa... https://github.com/astral-sh/ruff/issues/970
comment by js2 · 2025-06-24 · in uv: An extremely fast Python package and project manager, written in Rust -
…to the Python AST and a toolkit of Rust-supplied functions for manipulating and inspecting it? [1]: https://github.com/astral-sh/ruff/tree/main/crates/ruff_lint...
comment by mikepurvis · 2025-05-21 · in Roto: A Compiled Scripting Language for Rust -
I also asked this question here: https://github.com/astral-sh/ruff/discussions/15149#discussi... .
comment by danlamanna · 2025-05-07 · in Ty: A fast Python type checker and language server -
…though we're moving in the direction of auto-generating more of it from a declarative grammar. https://github.com/astral-sh/ruff/issues/15655 https://github.com/astral-sh/ruff/tree/main/crates/ruff_pyth...…
comment by dcreager · 2025-05-07 · in Ty: A fast Python type checker and language server -
Closing in on alpha https://github.com/astral-sh/ruff/milestone/22
comment by sito42 · 2025-05-07 · in Ty: Astral's New Type Checker (Formerly Red-Knot) – Talk Python Live Stream [video] -
…"Red Knot". Refer to the crates starting with red_knot in this directory to follow its development: https://github.com/astral-sh/ruff/tree/main/crates The latest commit was only an hour ago.
comment by maxloh · 2025-04-29 · in Pyrefly - A faster Python type checker written in Rust -
Currently known as red-knot: https://github.com/astral-sh/ruff/milestone/20
comment by mwaitjmp · 2025-03-13 · in Switching from Pyenv to Uv -
…The goal is for the produced distribution to work on any system for the targeted architecture. [1]: https://github.com/astral-sh/ruff [2]: Significantly faster than regular pip: https://github.com/astral-sh/uv [3]: https://rye.astral.sh/…
comment by pushfoo · 2025-02-24 · in Python-build-standalone: redistributable builds of Python -
Another useful issue filter: https://github.com/astral-sh/ruff/milestone/20
comment by smpretzer · 2025-01-29 · in "We're building a new static type checker for Python" -
…code named "red knot" (or "red_knot"). Here's the github issues filter linked in the screenshot: https://github.com/astral-sh/ruff/labels/red-knot And the best answer/description of what the type checker will be:…
comment by jasonpeacock · 2025-01-29 · in "We're building a new static type checker for Python" -
…there, but for the time I do, it works nicely - https://github.com/pappasam/jedi-language-server - https://github.com/astral-sh/ruff
comment by dailykoder · 2025-01-24 · in The State of Vim -
…talk about here: https://youtu.be/byynvdS_7ac?si=JWeeD3uwXflWl5jo&t=1980 Code Name is Red Knot: https://github.com/astral-sh/ruff/discussions/12143
comment by __tyler__ · 2025-01-22 · in Ruff: Python linter and code formatter written in Rust -
Whenever Ruff comes up, I reflexively go and check https://github.com/astral-sh/ruff/issues/970 , since Pylint is the one tool whose performance I find to be egregiously bad. Looks like Ruff is still very far from being able to replace it.
comment by FreakLegion · 2025-01-21 · in Ruff: Python linter and code formatter written in Rust -
▲ 200
Ruff: Python linter and code formatter written in Ruststory by modinfo · 2025-01-21 · 150 comments
-
…community will be able to take over its maintenance or fork you. Tails, you win, heads, you win. https://github.com/astral-sh/ruff/blob/main/LICENSE
comment by kjksf · 2024-10-30 · in Astral: Next-Gen Python Tooling -
…appears to be exactly what I _wish_ their next project to be — a replacement for pyright et al ( https://github.com/astral-sh/ruff/discussions/10581 ). Type checking is my least favorite part of my Python toolchain at the moment; I can't…
comment by jmduke · 2024-10-30 · in Astral: Next-Gen Python Tooling -
…The one I use doesn't, maybe the issue[0] I just created will lead to it being implemented. [0]: https://github.com/astral-sh/ruff/issues/13676
comment by riezebos · 2024-10-08 · in Python 3.13.0 Is Released -
…<https://www.phoenixframework.org/> - Ruff (84%, 3%) – Fast Python linter and code formatter. <https://github.com/charliermarsh/ruff> - Elixir (77%, 2%) – Functional, concurrent language for scalable applications.…
comment by quinncom · 2024-07-28 · in Dev tools that should be more popular according to the 2024 Developer Survey -
Try ruff [0] and get rid of flake and black [0]: https://github.com/astral-sh/ruff
comment by Ringz · 2024-03-21 · in Ludic: New framework for Python with seamless Htmx support -
…unparse but it removes comments, and forgets the current style completely). I use "ruff" a lot ( https://github.com/astral-sh/ruff ) which is in Rust. But I want to be able to implement fast custom linters in Go (linters that ruff / fixit…
comment by ilius2 · 2024-02-07 · in Ask HN: What interesting project ideas you've got but have no time to work on? -
I think it’s interesting that rye uses ruff ( https://github.com/astral-sh/ruff ) for linting and formatting. That’s the right call, and it’s also correct to bundle that in for an integrated dev experience. I had to guess, that’s the path…
comment by nindalf · 2024-02-04 · in Rye: A Vision Continued -
▲ 1
An fast Python linter and code formatter, written in Ruststory by kenaqshal · 2024-01-26 · 0 comments
-
…linting and formatting with ruff? [1] [0] https://jupyterlite.readthedocs.io/en/stable/ [1] https://github.com/astral-sh/ruff (ruff format is almost 100% compatible with black formatting)
comment by SushiHippie · 2024-01-12 · in Show HN: Marimo – an open-source reactive notebook for Python -
I confess I stole the pip recipe from Charlie :D https://github.com/astral-sh/ruff/blob/main/.github/workflow...
comment by herrington_d · 2023-12-10 · in AST-grep(sg) is a CLI tool for code structural search, lint, and rewriting -
▲ 3
Ruff: fast Python linter and code formatter, written in Ruststory by behnamoh · 2023-12-03 · 0 comments
-
▲ 2
Ruff: An fast Python linter and code formatter, written in Ruststory by tosh · 2023-11-27 · 0 comments
-
I'm happy with Ruff[0], it's very fast. [0] -- https://github.com/astral-sh/ruff
comment by wdroz · 2023-11-22 · in Writing and linting Python at scale -
▲ 2
Ruff v0.12story by vedk · 2023-10-24 · 1 comment
-
…like ruff will get too many options, since its maintainers (or at least one of them) agree with you https://github.com/astral-sh/ruff/discussions/7310#discussio...
comment by wartijn_ · 2023-10-17 · in Ruff v0.1.0 -
Here's an issue on extending Ruff: https://github.com/astral-sh/ruff/issues/283 I think the philosophy right now is to treat it like Black, but I'm not going to speak for the authors or maintainers, it's just my opinion.
comment by heavyset_go · 2023-10-17 · in Ruff v0.1.0