[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116299":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":9,"pushedAt":32,"updatedAt":33,"readmeContent":34,"aiSummary":35,"trendingCount":15,"starSnapshotCount":15,"syncStatus":36,"lastSyncTime":37,"discoverSource":38},116299,"unref","Apakottur\u002Funref","Apakottur","An extremely fast Python dead code finder, written in Rust.",null,"Rust",139,3,1,13,0,4,75,22,77.31,"MIT License",false,"main",true,[25,26,27,28,29,30,31],"code-quality","dead-code","linter","python","ruff","static-analysis","unused-code","2026-11-22 12:06:56","2026-11-23 16:38:18","[![image](https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fv\u002Funref.svg)](https:\u002F\u002Fpypi.python.org\u002Fpypi\u002Funref)\n[![image](https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fl\u002Funref.svg)](https:\u002F\u002Fgithub.com\u002FApakottur\u002Funref\u002Fblob\u002Fmain\u002FLICENSE)\n[![image](https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fpyversions\u002Funref.svg)](https:\u002F\u002Fpypi.python.org\u002Fpypi\u002Funref)\n[![image](https:\u002F\u002Fimg.shields.io\u002Freadthedocs\u002Funref.svg)](https:\u002F\u002Funref.readthedocs.io\u002F)\n\n# unref\n\nAn extremely fast Python dead code finder, written in Rust.\n\n\u003Cp align=\"center\">\n  \u003Cimg alt=\"Time to check CPython with unref and other dead code finders\" src=\"https:\u002F\u002Fraw.githubusercontent.com\u002FApakottur\u002Funref\u002Fmain\u002Fassets\u002Fbenchmark.svg\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ci>Checking the whole \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpython\u002Fcpython\">CPython\u003C\u002Fa> codebase (v3.15.0, about 2,300 Python files),\n  measured with \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FApakottur\u002Funref\u002Fblob\u002Fmain\u002Fscripts\u002Fbenchmark.py\">\u003Ccode>scripts\u002Fbenchmark.py\u003C\u002Fcode>\u003C\u002Fa>.\u003C\u002Fi>\n\u003C\u002Fp>\n\n- **Fast**: 20x faster than [vulture](https:\u002F\u002Fgithub.com\u002Fjendrikseipp\u002Fvulture), it checks all of CPython's Python code in\n  under a second.\n- **Just works**: built-in rules for pytest, Django, Flask, Pydantic, SQLAlchemy and\n  [more](https:\u002F\u002Funref.readthedocs.io\u002Fen\u002Flatest\u002Fframeworks\u002F), so most projects need little or no\n  configuration.\n- **Flexible**: works for applications and libraries alike, see\n  [what counts as dead code](https:\u002F\u002Funref.readthedocs.io\u002Fen\u002Flatest\u002Ffaq\u002F#what-counts-as-dead-code).\n- **Modern**: follows the conventions of [Ruff](https:\u002F\u002Fdocs.astral.sh\u002Fruff\u002F) and [ty](https:\u002F\u002Fdocs.astral.sh\u002Fty\u002F).\n- **Fits your workflow**: runs with `uvx`, as a pre-commit or prek hook, and in GitHub Actions.\n\n**Documentation**: [unref.readthedocs.io](https:\u002F\u002Funref.readthedocs.io\u002F)\n\n## Getting Started\n\nRun it with [`uvx`](https:\u002F\u002Fdocs.astral.sh\u002Fuv\u002F):\n\n```shell\n$ uvx unref\nsrc\u002Fproject\u002Fmodels.py:12:7: unused-class 'Account'\nsrc\u002Fproject\u002Futils.py:40:5: unused-function 'parse_date'\n```\n\nOr as a [pre-commit](https:\u002F\u002Fpre-commit.com\u002F) or [prek](https:\u002F\u002Fprek.j178.dev\u002F) hook, alongside\n[Ruff](https:\u002F\u002Fdocs.astral.sh\u002Fruff\u002F):\n\n```yaml\nrepos:\n  - repo: https:\u002F\u002Fgithub.com\u002Fastral-sh\u002Fruff-pre-commit\n    rev: v0.17.4\n    hooks:\n      - id: ruff-check\n      - id: ruff-format\n  - repo: https:\u002F\u002Fgithub.com\u002FApakottur\u002Funref\n    rev: v0.3.2\n    hooks:\n      - id: unref\n```\n\n## Contributing\n\nBug reports and other feedback are welcome as [issues](https:\u002F\u002Fgithub.com\u002FApakottur\u002Funref\u002Fissues). To\ncontribute, see [CONTRIBUTING.md](https:\u002F\u002Fgithub.com\u002FApakottur\u002Funref\u002Fblob\u002Fmain\u002FCONTRIBUTING.md).\n","unref 是一个用 Rust 编写的高性能 Python 死代码检测工具，用于识别未被引用的函数、类、变量等冗余代码。其核心特点是极快的分析速度（比 vulture 快约 20 倍）、开箱即用的主流框架支持（如 Django、Flask、Pydantic、SQLAlchemy），以及与 Ruff 风格兼容的现代静态分析体验。支持集成到 pre-commit、GitHub Actions 和 uvx 工作流中，适用于 Python 应用与库的代码质量维护和重构辅助场景。",2,"2026-11-24 04:53:30","CREATED_QUERY"]