Skip to main content
V Vatsal Trivedi
/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

3 capabilities
  1. 01

    Find imports missing from requirements.txt

  2. 02

    Run the check in CI with a GitHub Action

  3. 03

    Catch dependency drift before commit with a pre-commit hook