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. …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
  2. …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 )…
  3. …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
  4. …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
  5. 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
  6. …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
  7. 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.
  8. …detect. In my case ruff cannot fully replace my existing tools, but makes for a great companion. 1: https://github.com/charliermarsh/ruff/issues/970
    comment by Cort3z · 2023-04-19 · in Astral
  9. …realized that and was about to edit my comment. Found an issue tracking the black replacement bit: https://github.com/charliermarsh/ruff/issues/1904
    comment by almostdigital · 2023-04-18 · in Astral
  10. …include caching for other tools. It looks like the ruff benchmark is run with the `--no-cache` arg: https://github.com/charliermarsh/ruff/blob/main/CONTRIBUTING...
    comment by neuronexmachina · 2023-04-18 · in Astral
  11. > How does it compare with Pyflake8 in error messages? https://github.com/charliermarsh/ruff#rules > Ruff supports over 500 lint rules, many of which are inspired by popular tools like Flake8, isort, pyupgrade, and others. ... By default,…
    comment by neuronexmachina · 2023-04-18 · in Astral
  12. …of VC returns. But for now, I'm delighted and can't wait to see what the team comes up with. [1]: https://github.com/charliermarsh/ruff/issues/1904
    comment by akprasad · 2023-04-18 · in Astral
  13. in the domain of Python tooling made faster with Rust, check out https://github.com/charliermarsh/ruff which is 10-100x faster than pylint etc
    comment by swyx · 2023-03-30 · in Making Python faster with Rust
  14. …if it did all the things Pylint does, but Ruff still has a ways to go. They're tracking progress in https://github.com/charliermarsh/ruff/issues/970 .
    comment by FreakLegion · 2023-03-06 · in Even the Pylint codebase uses Ruff
  15. See https://github.com/charliermarsh/ruff/issues/970 for a comparison between pylint and ruff
    comment by SuperSandro2000 · 2023-03-06 · in Even the Pylint codebase uses Ruff
  16. There's a very clear graph the first thing on ruff's GitHub page, easy to find and research yourself: https://github.com/charliermarsh/ruff Can't miss it if you take time to check out the project.
    comment by qbasic_forever · 2023-03-06 · in Even the Pylint codebase uses Ruff
  17. Ruff is another Python linter, written in Rust. https://github.com/charliermarsh/ruff
    comment by mkl · 2023-03-06 · in Even the Pylint codebase uses Ruff
  18. …A lot of folks want us to add that kind of enforcement to Ruff ( https://github.com/charliermarsh/ruff/issues/458 ), and I want to do it, but it's a big project and some other stuff has higher priority :)
    comment by charliermarsh · 2023-02-14 · in Ruff: A fast Python linter, written in Rust
  19. There's an issue tracking parity here: https://github.com/charliermarsh/ruff/issues/970 Though it's probably a bit conservative. Some rules are implemented as straight one-to-one ports from Pylint, and those are easy to check off, but…
    comment by charliermarsh · 2023-02-14 · in Ruff: A fast Python linter, written in Rust
  20. …does look very promising. I’m personally waiting for them to reimplement most of Pylint’s checks. https://github.com/charliermarsh/ruff/issues/970
  21. I just tried ruff last night and ran into the match-case support issue. I'm following https://github.com/charliermarsh/ruff/issues/282 and looking forward to trying ruff again once that issue is closed.
    comment by bbkane · 2023-02-11 · in Google Python Style Guide
  22. …into Ruff, handles the whole codebase in less than second (vs minutes). Happy with it so far. https://github.com/charliermarsh/ruff This article also highlights some pain points I have with python. They say avoid big list comprehensions,…
    comment by matsemann · 2023-02-11 · in Google Python Style Guide
  23. also for tool, see Ruff: https://github.com/charliermarsh/ruff (I'm a big fan!)
  24. Ok apparently it does: https://github.com/charliermarsh/ruff#how-does-ruffs-import-...
    comment by stinos · 2022-12-22 · in Boring Python: Code quality
  25. yes it does. see see https://github.com/charliermarsh/ruff#supported-rules for the rules it supports. "IOO1" being the code for isort relevant section from my pyproject.toml [tool.ruff] line-length = 88 # pyflakes, pycodestyle, isort…
    comment by captnswing · 2022-12-20 · in Boring Python: Code quality
  26. …aren’t happy with Flake8, Pylint, and isort (or maybe if you are!), I recommend checking out Ruff: https://github.com/charliermarsh/ruff It’s literally 100 times faster, with comparable coverage to Flake8 plus dozens of plugins, automatic…
    comment by anderskaseorg · 2022-12-20 · in Boring Python: Code quality
  27. …I'd be curious to see functionality & performance comparisions if this project continues. [1] https://github.com/charliermarsh/ruff/blob/0b9e3f8b472dc3fd0...
  28. ▲ 148
    Ruff – a fast Python Linter written in Rust
    story by amrrs · 2022-08-31 · 46 comments
  29. ▲ 4
    ruff – An extremely fast Python linter, written in Rust
    story by charliermarsh · 2022-08-30 · 0 comments