affaan-m avatar

Django Verification

This is the pre-flight checklist you run before merging Django code or deploying to production. It walks through twelve phases: environment validation, linting with ruff and black, migration safety checks, pytest with coverage targets, security scans with pip-audit and bandit, static asset builds, and configuration review to catch DEBUG mode or missing ALLOWED_HOSTS. The output template gives you a clean pass/fail breakdown across all phases. It's comprehensive to the point of being slightly tedious, but that's the point. You'll catch the embarrassing stuff like hardcoded secrets, missing migrations, or N+1 queries before they hit staging. Best used as a pre-commit hook or CI step rather than running manually every time.

skills.sh installs
5.6K
GitHub stars
300.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add affaan-m/ecc --skill django-verification --agent claude-code

Installs into .claude/skills of the current project.

Files

Django Verification Loop

Run before PRs, after major changes, and pre-deploy to ensure Django application quality and security.

When to Activate

  • Before opening a pull request for a Django project
  • After major model changes, migration updates, or dependency upgrades
  • Pre-deployment verification for staging or production
  • Running full environment → lint → test → security → deploy readiness pipeline
  • Validating migration safety and test coverage

Phase 1: Environment Check

# Verify Python version
python --version  # Should match project requirements

# Check virtual environment
which python
pip list --outdated

# Verify environment variables
python -c "import os; import environ; print('DJANGO_SECRET_KEY set' if os.environ.get('DJANGO_SECRET_KEY') else 'MISSING: DJANGO_SECRET_KEY')"

If environment is misconfigured, stop and fix.

Phase 2: Code Quality & Formatting

# Type checking
mypy . --config-file pyproject.toml

# Linting with ruff
ruff check . --fix

# Formatting with black
black . --check
black .  # Auto-fix

# Import sorting
isort . --check-only
isort .  # Auto-fix

# Django-specific checks
python manage.py check --deploy

Sponsors

Details

Repository
github.com/affaan-m/ecc
Categories
Testing & QA, Security, Release Management, Python
First seen
Jul 14, 2026

More from affaan-m/ecc

All 263
1affaan-m avatardjango-celeryaffaan-m/eccDjango + Celery async task patterns — configuration, task design, beat scheduling, retries, canvas workflows, monitoring, and testing. Use when adding backgroun5.6Kskills.sh installs
2pixijs avatarpixijs-html-sourcepixijs/pixijs-skillsUse this skill when rendering live HTML/DOM elements (or frozen snapshots of them) as PixiJS v8 textures via the EXPERIMENTAL HTML-in-Canvas browser APIs. Cover5.5Kskills.sh installs
3earthtojake avatarimplicit-cadearthtojake/text-to-cadCreate, edit, render, and snapshot browser-native implicit CAD `.implicit.js` and `.implicit.mjs` files using GLSL signed-distance fields, shader primitives, sm5.5Kskills.sh installs
4affaan-m avatarproduct-lensaffaan-m/eccUse this skill to validate the "why" before building, run product diagnostics, and pressure-test product direction before the request becomes an implementation 5.5Kskills.sh installs
5trailofbits avatarruzzytrailofbits/skillsRuzzy is a coverage-guided Ruby fuzzer by Trail of Bits. Use for fuzzing pure Ruby code and Ruby C extensions.5.5Kskills.sh installs
6affaan-m avatarangular-developeraffaan-m/eccGenerates Angular code and provides architectural guidance. Trigger when creating projects, components, or services, or for best practices on reactivity (signal5.5Kskills.sh installs