From 8cc237e7a3ad6c4554479782efe2e3a8d351172c Mon Sep 17 00:00:00 2001 From: Mike <22396211+Dresdn@users.noreply.github.com> Date: Wed, 22 Feb 2023 08:08:47 -0700 Subject: [PATCH] ci: check for missing migrations --- .pre-commit-config.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6a82e7d..958dfaf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,3 +15,13 @@ repos: - id: black language_version: python3 entry: black --target-version=py36 + +- repo: https://github.com/remastr/pre-commit-django-check-migrations + rev: v0.1.0 + hooks: + - id: check-migrations-created + args: + [ + --exec-command=poetry run python, + --manage-path=manage.py, + ]