Hacker GitHub

← All repos

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

Mentions per year 79 mentions · busiest year 2023 (31)
20082026
  1. …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
  2. …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
  3. …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
  4. …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
  5. 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
  6. …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
  7. 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
  8. …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?
  9. 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…
  10. …[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
  11. …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
  12. …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
  13. 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
  14. …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
  15. 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
  16. 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
  17. It's in the documentation: https://docs.astral.sh/ruff/faq/#how-does-ruffs-linter-compa... https://github.com/astral-sh/ruff/issues/970
  18. …ruff first, followed by pylint. https://docs.astral.sh/ruff/faq/#how-does-ruffs-linter-compa... https://github.com/astral-sh/ruff/issues/970
  19. …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
  20. I also asked this question here: https://github.com/astral-sh/ruff/discussions/15149#discussi... .
  21. …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...…
  22. Closing in on alpha https://github.com/astral-sh/ruff/milestone/22
  23. …"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.
  24. 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
  25. …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/…
  26. Another useful issue filter: https://github.com/astral-sh/ruff/milestone/20
  27. …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:…
  28. …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
  29. …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
  30. 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.
  31. …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
  32. …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
  33. …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
  34. …<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.…
  35. Try ruff [0] and get rid of flake and black [0]: https://github.com/astral-sh/ruff
  36. …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…
  37. 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
  38. …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)
  39. I confess I stole the pip recipe from Charlie :D https://github.com/astral-sh/ruff/blob/main/.github/workflow...
  40. 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
  41. Although it's in alpha, Ruff does have a replacement for Black. https://github.com/astral-sh/ruff/blob/main/crates/ruff_pyth...
    comment by 0xFF0123 · 2023-10-18 · in Mypy 1.6
  42. …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
  43. 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
  44. …option is now named `--output-format`, and it was only deprecated 3 weeks ago in version 0.0.291 ( https://github.com/astral-sh/ruff/releases/tag/v0.0.291 ). That's bound to break some CI pipelines, and definitely breaks the…
    comment by kstrauser · 2023-10-17 · in Ruff v0.1.0
  45. …things like https://learnpython.com/blog/python-match-case-statement/ + mypy + Ruff for linting https://github.com/astral-sh/ruff can get pretty good results. I found typed dataclasses ( https://docs.python.org/3/library/dataclasses.html )…
  46. …to implement all of the rules. OP, excellent idea, and also, hats off to the ruff team, really: https://github.com/astral-sh/ruff/issues/7248
    comment by nbadg · 2023-09-11 · in Flake8-Logging
  47. …They also work just fine. Python tooling doesn't seem bad to me. [1] https://python-poetry.org/ [2] https://github.com/astral-sh/ruff [3] https://mypy-lang.org/
    comment by r4indeer · 2023-07-08 · in ZeroVer: 0-Based Versioning
  48. Pylint has hundreds of rules that ruff doesn't have, yet; see this GitHub issue: https://github.com/charliermarsh/ruff/issues/689
    comment by claytonjy · 2023-06-06 · in Ruff: A Fast Python Linter
  49. …and then manually run mypy or whatever type checker on occasion (maybe as a pre commit hook?). [0] https://github.com/charliermarsh/ruff
    comment by eyegor · 2023-05-21 · in Writing Python like it's Rust
  50. This seems to have worked for Ruff in the Python world: https://github.com/charliermarsh/ruff It re-implements a bunch of popular linting rulesets & plugins in Rust and is incredibly fast, especially compared to the other tools.