Better HN
topnewbestaskshowjobs
Log inSign up

McAvey

27 karma · joined Aug 8, 2022 (4y ago) · 9 submissions

Submissions

comment 1w ago · link · parent

Yeah exactly, for apps it's any code that is not reachable from the app entry point, and for libraries is any code not reachable through the public API.

I've updated the README and added a FAQ section in the docs to explain this, thanks for the question!

Here's the PR - https://github.com/Apakottur/unref/pull/121

comment 1w ago · link · parent

Yeah and I think these problems are only increasing in importance in AI times, with code generation being so easy.

comment 1w ago · link · parent

Glad to hear!

Feel free to open an issue on github if you find any false positives/negatives.

comment 1w ago · link · parent

Thanks for trying it and for the feedback! I'm working on making popular frameworks work out of the box, and Flask clearly needs more work.

Feel free to open a GitHub issue with a few of the false positives: https://github.com/Apakottur/unref/issues

comment 1w ago · link · parent

Thanks, one of my goals was to try and make popular frameworks work well with this tool, and I didn't add Django yet.

I'll make a PR to add some basic Django support which should address both of your points.

comment 1w ago · link · parent

Yes, only the Python code (every .py file in the CPython repo).

The benchmark script is in the repo so you can run it yourself, the results are from my potato computer, will probably be even faster on modern PCs.

I've updated the README to be more clear about that, thanks for pointing that out!

comment 1w ago · link · parent

Great let me know how it goes!

The initial version was in Python which was pretty fast as well, decided to try Rust both for speed and to reuse more constructs from ruff/ty for better compatibility with them.

8.

Show HN: Unref – A Python dead code finder built on Ruff's parser(github.com ↗)

63 points · by McAvey · 1w ago · 18 comments

9.

Show HN: Pgmig: Generate migrations between Postgres databases(github.com ↗)

3 points · by McAvey · 4mo ago · discuss