django-verification

Run migrations, linting, tests, and security scans on Django projects.

1|Updated Oct 14, 2023
One-click install
npx skills add https://github.com/walterfan/lazy-ai-primer --skill django-verification-walterfan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: django-verification
Source: https://github.com/walterfan/lazy-ai-primer/tree/main/assets/skills/django-verification
Command: npx skills add https://github.com/walterfan/lazy-ai-primer --skill django-verification-walterfan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires ruff, black, mypy, pytest, pytest-cov, bandit, safety, pip-audit, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates a comprehensive verification loop for Django projects, ensuring code quality, security, and readiness for deployment or pull requests.

Core Features & Use Cases

  • Automated Checks: Runs migrations, linting, tests with coverage, security scans, and configuration reviews.
  • Pre-Release Validation: Catches common errors and vulnerabilities before they reach production.
  • Use Case: Before merging a pull request that modifies core application logic, run this Skill to automatically verify that all tests pass, code style is consistent, and no security vulnerabilities are introduced.

Quick Start

Execute the django-verification skill to perform a full pre-deployment check on your Django project.

Frequently Asked Questions about django-verification

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

FAQPage Schema
How do I automate Django pre-deployment checks for security and code quality?

Automate Django pre-deployment checks by running a verification loop that executes migrations, linting, tests with coverage, and security scans to validate application readiness before release.

What is included in a comprehensive Django verification loop before a pull request?

A comprehensive Django verification loop includes running migrations, linting, tests with coverage, security scans, and configuration reviews to catch errors and vulnerabilities before merging.

How do I run security scans and linting for a Django project?

Run security scans and linting for a Django project by executing automated tools like bandit, safety, ruff, and black to detect vulnerabilities and enforce code style consistency.

Do I need mypy and pytest to verify Django app quality before release?

You need mypy and pytest to verify Django app quality, as they provide static type checking and execute test suites with coverage analysis to ensure code correctness before release.

What's the best way to check Django deployment readiness after major changes?

The best way to check Django deployment readiness after major changes is to execute a full verification loop of management commands, linters, and security tools to validate the project state.

Why does my Django deployment fail security checks despite passing tests?

Django deployment may fail security checks despite passing tests because standard tests do not detect vulnerabilities; you must run dedicated security scans using bandit, safety, and pip-audit.