# 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,…

- **Page:** https://magpie.gallery/i/unref-a-python-dead-code-finder-built-on-ruff-s-pa-xx1y
- **Type:** Link to an idea elsewhere
- **Category:** AI & dev
- **Tags:** python, dead-code, rust, linter, ci

## Source

Web · McAvey: Unref – A Python dead code finder built on Ruff's parser

- **Original:** https://news.ycombinator.com/item?id=50517410

> 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. https://github.com/Apakottur/unref

## GitHub projects

- https://github.com/Apakottur/unref
- https://github.com/astral-sh/ruff

## Rules for reuse

- Build your own version: don't copy another product's code, look, icons, colours or copy.
- The original belongs to its author; Magpie only links to it.
- The original content's copyright belongs to its creator. Magpie doesn't download or re-upload it; we only show the link and the official preview.
