4Catalyzer / alembic-autogen-check

Command to check that alembic migrations are in sync with SQLAlchemy models
MIT License
23 stars 6 forks source link

Expose pre-commit hook? #3

Open sloria opened 5 years ago

itajaja commented 5 years ago

isn't there one already?

sloria commented 5 years ago

I mean "expose a hook" to users so you could do something like

repos:
- repo: https://github.com/4Catalyzer/alembic-autogen-check
  rev: master
  hooks:
  - id: alembic-autogen-check
Cediddi commented 10 months ago

I support this request too. Here's an example one for zimports: https://github.com/sqlalchemyorg/zimports/blob/main/.pre-commit-hooks.yaml