使わないコードを見つけるツール「Unref」
Show HN: Unref – A Python dead code finder built on Ruff's parser
💬 In one line
Pythonのプログラムの中から「書いてあるけど実は使われていない部分」を自動で探してくれるツール。作者さんが個人で作った試作品で、速さが特徴です。
✨ What it does
-
めちゃ速い
今まであった同じような道具の20倍近く速く動きます。大きなプログラムでも1秒未満で終わります。
-
設定がほぼ不要
pytest や Django など有名なツールの書き方に自動で対応するので、細かい設定をしなくても動きます。
-
チームで使える
GitHub Actions や開発時の自動チェック機能に組み込めるので、チーム全体でコード整理に取り組めます。
🛠 Who it helps
Pythonでプログラムを作っているエンジニアやチームに向いています。長く開発を続けているプロジェクトの中から「昔書いたけどもう不要になった部分」を見つけて削除したい、という場面で活躍します。
⚠️ Caution
まだ試作品の段階です。作者さんが「見落としがあったら教えてほしい」と呼びかけています。
🔗 Original
The write-up above summarises the original. See it for the exact details.
📖 More new Show HN
🔗 Related hubs and more new arrivals
The headline and summary are an AI's Japanese rendering of a page published by an individual or a small team. They can diverge from the original. For the exact wording, follow the link to the source. Terms of Use