An extremely fast Python dead code finder, written in Rust.
// momentum
// why it's here
- Created 10 days ago and already shipping
- Built almost entirely by one person
- 10 releases in the last 90 days
// how to help
// readme
unref
An extremely fast Python dead code finder, written in Rust.
measured with scripts/benchmark.py.
- Fast: 20x faster than vulture, it checks all of CPythonβs Python code in under a second.
- Just works: built-in rules for pytest, Django, Flask, Pydantic, SQLAlchemy and more, so most projects need little or no configuration.
- Flexible: works for applications and libraries alike, see what counts as dead code.
- Modern: follows the conventions of Ruff and ty.
- Fits your workflow: runs with
uvx, as a pre-commit or prek hook, and in GitHub Actions.
Documentation: unref.readthedocs.io
Getting Started
Run it with uvx:
$ uvx unref
src/project/models.py:12:7: unused-class 'Account'
src/project/utils.py:40:5: unused-function 'parse_date'