Repository

Apakottur/unref

unref

Open github.com

Apakottur/unref

unref

An extremely fast Python dead code finder written in Rust, using Ruff's parser. Checks all of CPython in under a second with built-in rules for pytest, Django, Flask, and more.

Visit project

Show me a random project

First shared
Nov 16, 2026
HN activity
6318

Show HN@McAveyNov 16, 2026

Show HN: Unref – A Python dead code finder built on Ruff's parser

I wanted a good Python dead code finder that just works, with minimal config, until Ruff adds support for that (https://github.com/astral-sh/ruff/issues/872). None of the newer alternatives to Vulture worked out of the box on my codebases, so I decided to build one. The first version was in Python, then I switched to Rust for speed and to reuse Ruff's parser. It checks all of CPython in under a second. It found lots of interesting dead code in my team's codebases, and it's the first time in years we've had a Python dead code finder in our CI. Feedback is very welcome, especially dead code it misses.

Community

Hacker News discussion

Loading the thread…