Back to list

Unref

An extremely fast Python dead-code finder, written in Rust: all of CPython checked in under a second, 20x faster than vulture.

李维
Author
@李维
Project ShowcaseDeveloper ToolsOnlineclaude-code
0
0

Project intro

Unref finds the functions, classes, methods, variables and attributes that nothing in a Python project uses. It is built on Ruff's parser, so it understands real Python, and it runs with uvx, as a pre-commit or prek hook, or in GitHub Actions — wherever your checks already live.

The headline number is speed: 20 times faster than vulture, checking all of CPython's Python code — about 2,300 files — in under a second. The docs benchmark puts it at 0.91 seconds against vulture's 18.47. It also ships built-in rules for pytest, Django, Flask, Pydantic, SQLAlchemy and more, so most projects need little or no configuration, and it follows the conventions of Ruff and ty.

The project has 83 stars on GitHub, with 1 fork, and it is moving fast: 124 commits and 15 releases, with v0.3.0 out on 18 November 2026 and the latest push on 19 November. It is on PyPI, supports Python 3.11 to 3.15, and its Show HN thread drew 59 points the week it launched.

Two honest limits: dead-code detection can flag things that look unused but are reached by frameworks or plugins, so false positives are a known issue and the project asks for them as bug reports. And Ruff itself does not find this kind of unused code yet — that gap is exactly why Unref exists, but it also means the tool is young and its rule set is still growing.

Actions

Visit project URL

Tech stack

rust

Project info

Project category
Developer Tools
Project status
Online
Collaboration intent
None

Comments (0)

ME
0/1000
Loading comments...