Skip to content
Snippets Groups Projects
Commit f4105d66 authored by Roang's avatar Roang
Browse files

Add migrations pre-commit hook

parent 82e0d445
No related branches found
No related tags found
No related merge requests found
......@@ -36,3 +36,13 @@ repos:
rev: 2.19.2
hooks:
- id: pdm-lock-check
- repo: local
hooks:
- name: Check for uncreated migrations.
id: migrations-check
language: system
entry: sh -c "src/manage.py makemigrations --check --dry-run"
files: "models/.*.py$"
types:
- python
stages: [pre-commit]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment