News for hackers. Stuff that matters.

McAvey

Show HN: Unref – A Python dead code finder built on Ruff's parser

https://github.com/Apakottur/unref

I wanted a good Python dead code finder that just works, with minimal config, until Ruff adds support for that (https://github.com/astral-sh/ruff/issues/872).None of the newer alternatives to Vulture worked out of the box on my codebases, so I decided to build one.The first version was in Python, then I switched to Rust for speed and to reuse Ruff's parser. It checks all of CPython in under a...

( Read More... | no comments | on HN )

Show HN: Pgmig: Generate migrations between Postgres databases

https://github.com/Apakottur/pgmig

I've been comparing PostgreSQL schemas for so many years now. I've been using all kinds of frameworks for ORM and code-first schema generation, but getting the actual "diff" between what I have and what I want has always been a pain.For a long time, I've relied on a customized version of migra (https://github.com/djrobstep/migra). It was the best tool of all those I've tried, but it's...

( Read More... | no comments | on HN )