Enable pre-commit hook to check django migrations
This commit is contained in:
parent
62e48c6e6f
commit
6c80ed05bd
@ -24,12 +24,11 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: pdm-lock-check
|
- id: pdm-lock-check
|
||||||
|
|
||||||
# TODO: waiting on django-recurrence 1.12 to be released on PyPi
|
- repo: local
|
||||||
# - repo: local
|
hooks:
|
||||||
# hooks:
|
- id: django-migrations
|
||||||
# - id: django-migrations
|
name: Check django migrations
|
||||||
# name: Check django migrations
|
entry: pdm run ./manage.py makemigrations --check --dry-run
|
||||||
# entry: pdm run ./manage.py makemigrations --check --dry-run
|
language: system
|
||||||
# language: system
|
types: [python]
|
||||||
# types: [python]
|
pass_filenames: false
|
||||||
# pass_filenames: false
|
|
||||||
|
Loading…
Reference in New Issue
Block a user