pre-commit hook to check Django missing model's changes not reflected in migration files.
It will be triggered only when you change a python file called models
or a file inside a package
called models
.
It can be easily used inside a CI, all the instructions can be found inside pre-commit documentation and run it over all files.
Add this to your .pre-commit-config.yaml
- repo: https://github.com/iflare3g/pre-commit-django-missing-migrations/
rev: 1.0.0
hooks:
- id: check-missing-migrations