/09 Developer tool
PyImportSync
AST-based check that every Python import is declared in requirements.txt. Action and pre-commit hook.
The overview
Catches imports that never made it into requirements.txt. AST-based, so the same check runs locally and in CI.
What I built
An AST check packaged as a GitHub Action and a pre-commit hook.
In practice
What you can do with it
- 01
Find imports missing from requirements.txt
- 02
Run the check in CI with a GitHub Action
- 03
Catch dependency drift before commit with a pre-commit hook