Trendoday

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

discuss

  • Points61
  • Comments18
–Rank now
#20Peak rank
3Days on list
33Score · 7d
Nov 18, 2026First seen
Rank · 7 days

On Hacker News

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…

Points
61
Comments
18
Submitted by
McAvey
Posted
Nov 16, 2026
Site
github.com

Story details from Hacker News ↗ · linked article on github.com.

Trending history

Show HN: Unref – A Python dead code finder built on Ruff's parser was first seen on Hacker News · Front page on Nov 18, 2026. Since then it has appeared in 67 checks on 3 different days, across 2 lists (Hacker News · Front page, Hacker News · Show HN · this week). Its best position was #20 of 30, reached on Nov 18, 06:43 UTC. It dropped off the list after Nov 20, 02:51 UTC.

Rank history

Position on Hacker News · Front page at every check (lower is better).

#1#11#20#30 06:4308:2510:0611:4713:28 Nov 18, 06:43 UTC · #20Nov 18, 06:58 UTC · #24Nov 18, 07:13 UTC · #25Nov 18, 07:28 UTC · #27Nov 18, 07:43 UTC · #29Nov 18, 07:58 UTC · #26Nov 18, 08:13 UTC · #22Nov 18, 08:28 UTC · #25Nov 18, 08:43 UTC · #23Nov 18, 08:58 UTC · #27Nov 18, 09:13 UTC · #28Nov 18, 09:28 UTC · #25Nov 18, 09:43 UTC · #28Nov 18, 09:58 UTC · #24Nov 18, 10:13 UTC · #27Nov 18, 10:28 UTC · #26Nov 18, 10:43 UTC · #28Nov 18, 10:58 UTC · #26Nov 18, 11:13 UTC · #25Nov 18, 11:28 UTC · #24Nov 18, 11:43 UTC · #26Nov 18, 11:58 UTC · #27Nov 18, 12:13 UTC · #30Nov 18, 12:28 UTC · #30Nov 18, 12:43 UTC · #30Nov 18, 12:58 UTC · #30Nov 18, 13:13 UTC · #26Nov 18, 13:28 UTC · #26

Last 14 days

Best rank per day (UTC).

Nov 7today

Metric history

Platform metric as reported by Hacker News.

0163147 06:4308:2510:0611:4713:28 Nov 18, 06:43 UTC · 4Nov 18, 06:58 UTC · 8Nov 18, 07:13 UTC · 9Nov 18, 07:28 UTC · 10Nov 18, 07:43 UTC · 10Nov 18, 07:58 UTC · 13Nov 18, 08:13 UTC · 17Nov 18, 08:28 UTC · 17Nov 18, 08:43 UTC · 20Nov 18, 08:58 UTC · 20Nov 18, 09:13 UTC · 21Nov 18, 09:28 UTC · 24Nov 18, 09:43 UTC · 24Nov 18, 09:58 UTC · 25Nov 18, 10:13 UTC · 28Nov 18, 10:28 UTC · 29Nov 18, 10:43 UTC · 30Nov 18, 10:58 UTC · 31Nov 18, 11:13 UTC · 33Nov 18, 11:28 UTC · 34Nov 18, 11:43 UTC · 35Nov 18, 11:58 UTC · 35Nov 18, 12:13 UTC · 36Nov 18, 12:28 UTC · 36Nov 18, 12:43 UTC · 38Nov 18, 12:58 UTC · 40Nov 18, 13:13 UTC · 42Nov 18, 13:28 UTC · 47

Where it trended

ListBestDaysChecksLast seen
Hacker News · Front page#20128
Hacker News · Show HN · this week#19339

From the discussion

A few top-level comments from Hacker News, shortened. Read the full thread on Hacker News.

Cool project. I think false positives are more important than the dead code it misses at this stage. For example, it marks all Django settings as unused variables, probably because settings are typically not imported directly in Django projects. For example: from django.conf import settings ... if settings.DEBUG: ...…

I've been trying to do something like this internally too. Also started with Python, then moved onto ruff. My goal is a bit broader though. I want to use the dependency graph to detect changed parts of the project to selectively trigger image builds and run tests. Results are still poor, specially on the tests side.…

What is the definition of dead code that Unref uses? I distinguish between apps and libraries. In apps I can see how any code not callable from the entrypoint is dead, and for libraries I guess a definition is any code that is not callable from a public api? Would be nice to see the definition used placed in the…

Questions

Is Show HN: Unref – A Python dead code finder built on Ruff's parser trending on Hacker News right now?

Not at the moment. It was last on the list on Nov 20, 02:51 UTC, after 3 days of trending.

What is the highest rank Show HN: Unref – A Python dead code finder built on Ruff's parser reached?

#20 on Hacker News · Front page, on Nov 18, 06:43 UTC. Trendoday checks this list every 15 minutes.

How long has Show HN: Unref – A Python dead code finder built on Ruff's parser been trending?

It was first seen on Nov 18, 2026 and has been on the list on 3 days (67 checks) since.

How much discussion did it get on Hacker News?

61 points and 18 comments; submitted by McAvey on Nov 16, 2026.