first commit
Some checks failed
CI/CD Pipeline / Run Tests (push) Failing after 0s
CI/CD Pipeline / Code Quality Checks (push) Failing after 1m43s
CI/CD Pipeline / Build Docker Images (push) Has been skipped
CI/CD Pipeline / Push to Gitea Registry (push) Has been skipped

This commit is contained in:
2026-01-21 12:07:35 +01:00
commit e9d7f24aaa
102 changed files with 13890 additions and 0 deletions

16
scripts/check-migrations.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
# Django migration check script for pre-commit
cd "$(dirname "$0")/../src" || exit 1
export PYTHONPATH=.
export DJANGO_SETTINGS_MODULE=config.settings.development
if uv run python manage.py makemigrations --check --dry-run; then
echo "✓ Django migrations are up to date"
exit 0
else
echo "⚠ Warning: Django migrations check failed (may be due to configuration issues)"
echo " This doesn't prevent commits, but you should check migrations manually"
exit 0 # Exit with success to not block commits
fi