Enable pre-commit hook to check django migrations
This commit is contained in:
parent
62e48c6e6f
commit
6c80ed05bd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user