瀏覽代碼

Extend git commit hook to check for missing schema migrations

Jeremy Stretch 6 年之前
父節點
當前提交
d71e6698f4
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      scripts/git-hooks/pre-commit

+ 2 - 0
scripts/git-hooks/pre-commit

@@ -12,3 +12,5 @@ exec 1>&2
 echo "Validating PEP8 compliance..."
 pycodestyle --ignore=W504,E501 netbox/
 
+echo "Checking for missing migrations..."
+python netbox/manage.py makemigrations --dry-run --check