How mindaandreea/repo_health_toolkit works
This small Python CLI checks Alembic migration-chain structure without connecting to a database or invoking Alembic. The workflow is: a user supplies a versions directory, the auditor reads and parses migration headers, checks the resulting revision graph, and prints findings with a success or failure exit status. The runtime is implemented in one source file; the edges below reflect its shown calls and file reads.
Main entry points: chain_lint.py CLI entry point
Components 6
Other components
- User or CI
- CLI entry point
alembic_chain_lint/chain_lint.py - Chain auditor
alembic_chain_lint/chain_lint.py - Header parser
alembic_chain_lint/chain_lint.py - Migration files
- Findings and status
Connections 5
- User or CI → CLI entry point: runs with path
alembic_chain_lint/chain_lint.py - CLI entry point → Chain auditor: calls audit
alembic_chain_lint/chain_lint.py - Chain auditor → Migration files: reads headers
alembic_chain_lint/chain_lint.py - Chain auditor → Header parser: parses IDs
alembic_chain_lint/chain_lint.py - CLI entry point → Findings and status: prints and exits
alembic_chain_lint/chain_lint.py