Skip to content
Tech News
← Back to articles

New Rust tool 'unref' finds dead Python code using Ruff's parser

read original more articles
GoKawiil Brief

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.

Why It Matters

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.

Key Takeaways

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.
Keep reading
rust 158 briefs → python 68 briefs →