Enable pre-commit hook to check django migrations

This commit is contained in:
Adam Goldsmith 2024-09-03 11:00:38 -04:00
parent 62e48c6e6f
commit 6c80ed05bd

View File

@ -24,12 +24,11 @@ repos:
hooks:
- id: pdm-lock-check
# TODO: waiting on django-recurrence 1.12 to be released on PyPi
# - repo: local
# hooks:
# - id: django-migrations
# name: Check django migrations
# entry: pdm run ./manage.py makemigrations --check --dry-run
# language: system
# types: [python]
# pass_filenames: false
- repo: local
hooks:
- id: django-migrations
name: Check django migrations
entry: pdm run ./manage.py makemigrations --check --dry-run
language: system
types: [python]
pass_filenames: false