Show HN: Unref – A Python dead code finder built on Ruff's parser
Category: devtools
Tags: static-analysis, dead-code, python, rust, ruff
Score: 6.5/10 (Innovation: 6, Technical: 7, Documentation: 7, Utility: 6)
Unref is a Python dead code finder built on Ruff's parser, written in Rust. It detects unused functions, classes, methods, variables, and attributes with built-in rules for pytest, Pydantic, SQLAlchemy, and FastAPI, and benchmarks over 20x faster than vulture on CPython. It fills a known gap in Ruff's feature set with a Ruff-style interface and pyproject.toml configuration.
Target audience: python developers, backend devs, devops
Repository: https://github.com/Apakottur/unref · Rust · MIT · 129 stars
View on Hacker News