{"by":"McAvey","descendants":18,"id":50517410,"kids":[50544036,50546173,50546402,50550557,50543977,50544942,50546383,50556734,50543827,50544268,50544415,50545072,50561045,50542736,50545338,50545658,50542693],"score":63,"text":"I wanted a good Python dead code finder that just works, with minimal config, until Ruff adds support for that (<a href=\"https:&#x2F;&#x2F;github.com&#x2F;astral-sh&#x2F;ruff&#x2F;issues&#x2F;872\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;astral-sh&#x2F;ruff&#x2F;issues&#x2F;872</a>).<p>None of the newer alternatives to Vulture worked out of the box on my codebases, so I decided to build one.<p>The first version was in Python, then I switched to Rust for speed and to reuse Ruff&#x27;s parser. It checks all of CPython in under a second.<p>It found lots of interesting dead code in my team&#x27;s codebases, and it&#x27;s the first time in years we&#x27;ve had a Python dead code finder in our CI.<p>Feedback is very welcome, especially dead code it misses.","time":1794835830,"title":"Show HN: Unref – A Python dead code finder built on Ruff's parser","type":"story","url":"https://github.com/Apakottur/unref"}