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. ▲ 3
    Avoid unnecessary parser lookahead for operators
    story by tosh · 2026-05-21 · 0 comments
  8. 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
  9. …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?
  10. 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…
  11. …[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
  12. …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
  13. …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
  14. 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
  15. …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
  16. 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
  17. ▲ 2
    We adopt an approach I'll call "Thanks I Hate It (TIHI)"
    story by Redoubts · 2025-09-25 · 0 comments
  18. 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
  19. It's in the documentation: https://docs.astral.sh/ruff/faq/#how-does-ruffs-linter-compa... https://github.com/astral-sh/ruff/issues/970
  20. …ruff first, followed by pylint. https://docs.astral.sh/ruff/faq/#how-does-ruffs-linter-compa... https://github.com/astral-sh/ruff/issues/970
  21. …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
  22. I also asked this question here: https://github.com/astral-sh/ruff/discussions/15149#discussi... .
  23. …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...…
  24. Closing in on alpha https://github.com/astral-sh/ruff/milestone/22
  25. …"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.
  26. 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
  27. …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/…
  28. Another useful issue filter: https://github.com/astral-sh/ruff/milestone/20
  29. …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:…
  30. …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
  31. …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
  32. 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.
  33. ▲ 200
    Ruff: Python linter and code formatter written in Rust
    story by modinfo · 2025-01-21 · 150 comments
  34. …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
  35. …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
  36. …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
  37. …<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.…
  38. Try ruff [0] and get rid of flake and black [0]: https://github.com/astral-sh/ruff
  39. …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…
  40. 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
  41. ▲ 1
    An fast Python linter and code formatter, written in Rust
    story by kenaqshal · 2024-01-26 · 0 comments
  42. …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)
  43. I confess I stole the pip recipe from Charlie :D https://github.com/astral-sh/ruff/blob/main/.github/workflow...
  44. ▲ 3
    Ruff: fast Python linter and code formatter, written in Rust
    story by behnamoh · 2023-12-03 · 0 comments
  45. ▲ 2
    Ruff: An fast Python linter and code formatter, written in Rust
    story by tosh · 2023-11-27 · 0 comments
  46. 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
  47. ▲ 2
    Ruff v0.12
    story by vedk · 2023-10-24 · 1 comment
  48. 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
  49. …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
  50. 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