Hacker News new | ask | show | jobs
by tiltowait 407 days ago
I've been looking forward to this since the original announcement (and before, really).

On the modest codebase I tried it on (14k LOC across 126 files), it runs in 149ms compared to 1.66s in pyright (both run via uvx <tool>). I couldn't get it to play nicely with a poetry project, but it works fine (obviously) in a uv project.

Definitely some false-positives, as expected. Interestingly, it seems to hate the `dict()` initializer (e.g. `dict(foo="bar")`).

1 comments

Only one order of magnitude? I thought it would be 2. Isn’t ruff 400x faster than the fastest Python alternative?
A type checker is much more algorithmically bound / difficult to parallelise, but I'm sure there are still wins to be had in the future.