New Rust tool 'unref' finds dead Python code using Ruff's parser
A developer released unref, an open-source dead code detector for Python written in Rust and built on Ruff's parser. The tool's benchmarks claim it scans the entire CPython codebase (about 2,300 files) in under a second, roughly 20 times faster than the existing vulture tool, and ships with built-in rules for pytest, Pydantic and SQLAlchemy.
GoKawiil's interpretation of the reporting above, not reported fact.
Dead code detection tools help teams trim unused functions and classes, but slow scans often discourage regular use in large codebases or CI pipelines. By matching Ruff's conventions and output style and integrating with pre-commit and GitHub Actions, unref could make it easier for teams already using Ruff to adopt an additional linting step without much extra configuration.
- unref is a new open-source Python dead code finder written in Rust, built on Ruff's parser.
- Its creator claims it scans the full CPython codebase in under a second, about 20x faster than vulture.
- It integrates with existing workflows via uvx, pre-commit/prek hooks, and GitHub Actions, and includes rules for common frameworks like pytest and SQLAlchemy.
Source: github.com, 2026-11-16
Published there as: “Show HN: Unref – A Python dead code finder built on Ruff's parser”
Read the original report → The summary and analysis above are GoKawiil's own, written from reporting by the source above. Facts and quotes belong to the original publisher.