django-verification

Runs a multi-phase verification pipeline covering Django migrations, linting, tests, security scans, and deployment readiness.

Updated Mar 25, 2026
One-click install
npx skills add https://github.com/Femad-6/my-skills --skill django-verification-femad-6
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: django-verification
Source: https://github.com/Femad-6/my-skills/tree/main/.github/skills/django-verification
Command: npx skills add https://github.com/Femad-6/my-skills --skill django-verification-femad-6

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Django projects often ship with unapplied migrations, failing tests, vulnerable dependencies, or misconfigured production settings. This Skill provides a structured 12-phase verification loop that catches these issues before pull requests, releases, or deployments. ## Core Features & Use Cases - Full Quality Pipeline: Runs environment checks, mypy, ruff, black, isort, and Django's deployment checks in sequence. - Test and Coverage Enforcement: Executes pytest with coverage targets per component (models 90%+, views 80%+, overall 80%+). - Security and Deployment Readiness: Scans dependencies with pip-audit, safety, and bandit, then validates DEBUG, SECRET_KEY, ALLOWED_HOSTS, HTTPS, and HSTS settings. - Use Case: Before merging a feature branch with model changes, run the verification loop to confirm migrations exist, all 247 tests pass, coverage stays above 80%, and no vulnerable dependencies were introduced. ## Quick Start Run the Django verification loop on this project and report any failing phases before I open a pull request.

Frequently Asked Questions about django-verification

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I verify a Django project before deployment?

Run a phased verification covering environment checks, linting with ruff and black, migration validation with manage.py makemigrations --check, pytest with coverage, and security scans via pip-audit and bandit. Finish with manage.py check --deploy to confirm production settings.

How to check Django test coverage with pytest?

Run pytest --cov=apps --cov-report=term-missing to measure coverage across your Django apps. Target 90%+ for models, 85%+ for serializers, 80%+ for views, and 80%+ overall.

What tools scan Django dependencies for vulnerabilities?

pip-audit and safety check scan installed Python packages against known vulnerability databases, while bandit performs static analysis of your code for security issues. Running all three together gives broader coverage than any single tool.

Does Django have a built-in deployment check command?

Yes, python manage.py check --deploy inspects settings for production readiness, flagging issues like DEBUG=True, missing SECRET_KEY, empty ALLOWED_HOSTS, and disabled HTTPS or HSTS. It complements but does not replace dependency and code security scans.

Why does makemigrations --check fail after model changes?

The check fails when model changes exist without corresponding migration files. Run python manage.py makemigrations to generate them, and use makemigrations --merge if multiple branches created conflicting migrations.