Extend git commit hook to check for missing schema migrations
This commit is contained in:
@@ -12,3 +12,5 @@ exec 1>&2
|
|||||||
echo "Validating PEP8 compliance..."
|
echo "Validating PEP8 compliance..."
|
||||||
pycodestyle --ignore=W504,E501 netbox/
|
pycodestyle --ignore=W504,E501 netbox/
|
||||||
|
|
||||||
|
echo "Checking for missing migrations..."
|
||||||
|
python netbox/manage.py makemigrations --dry-run --check
|
||||||
|
Reference in New Issue
Block a user