python-quality-gate

Solid

Python quality checks: ruff, pytest, mypy, bandit in deterministic order.

AI & Automation 393 stars 36 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
86
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Python Quality Gate Skill Run four quality tools in deterministic order -- ruff, pytest, mypy, bandit -- and produce a structured pass/fail report with severity-categorized issues and auto-fix commands. ## Reference Loading Table | Signal | Load These Files | Why | |---|---|---| | writing the quality gate report | `report-template.md` | Loads detailed guidance from `report-template.md`. | | invoking ruff/mypy/pytest; severity classification and pass/fail thresholds | `tool-commands.md` | Loads detailed guidance from `tool-commands.md`. | ## Instructions ### Phase 1: Detection and Setup **Step 1: Read CLAUDE.md and detect project configuration.** Read and follow the repository's CLAUDE.md before any execution. Then detect project configuration: ```bash ls -la pyproject.toml setup.py setup.cfg mypy.ini .python-version 2>/dev/null ``` Identify Python version target, ruff config, pytest config, mypy config from pyproject.toml. Only validate code -- never add tools, features, or flexibility not requested. **Step 2: Detect source and test directories.** ```bash ls -d src/ app/ lib/ 2>/dev/null || echo "Source: current directory" ls -d tests/ test/ 2>/dev/null || echo "Tests: not found" ``` **Step 3: Verify tool availability.** ```bash ruff --version pytest --version mypy --version || echo "mypy not installed (optional)" bandit --version || echo "bandit not installed (optional)" ``` If ruff or pytest are missing, STOP. These are required: ``` ERROR: Required tool not...

Details

Author
notque
Repository
notque/vexjoy-agent
Created
2 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category