From 6c80ed05bddddc7ac41904ba0c0e7f9b5656e938 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Tue, 3 Sep 2024 11:00:38 -0400 Subject: [PATCH] Enable pre-commit hook to check django migrations --- .pre-commit-config.yaml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6bbd57a..da97012 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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