python-quality-gate

Run ruff, pytest, mypy, and bandit in fixed order and output a structured quality report.

415|44|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/notque/claude-code-toolkit --skill python-quality-gate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-quality-gate
Source: https://github.com/notque/claude-code-toolkit/tree/main/skills/python-quality-gate
Command: npx skills add https://github.com/notque/claude-code-toolkit --skill python-quality-gate

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill runs four Python quality tools in a deterministic order to provide consistent gate checks for PRs, CI, and release workflows.

Core Features & Use Cases

  • Deterministic execution order: ruff, pytest, mypy, and bandit run in a fixed sequence to ensure reproducible results.
  • Comprehensive quality reporting: structured output with severity, pass/fail, and actionable suggestions.
  • Use Case: Pre-merge validation and CI quality gates for Python projects, enabling reliable quality metrics.

Quick Start

Run the quality gate on your Python project to generate a structured report.

Frequently Asked Questions about python-quality-gate

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

FAQPage Schema
How do I run deterministic Python quality checks for PR validation?

Run deterministic Python quality checks by executing ruff, pytest, mypy, and bandit in a fixed sequence to validate project code quality. This ensures reproducible pre-merge validation and generates structured reports with severity-driven results and suggested fixes.

What is the execution order for Python lint and test tools in CI pipelines?

The execution order for Python quality tools is ruff, pytest, mypy, and bandit. This fixed sequence ensures reproducible results across CI pipelines and release workflows, providing consistent quality metrics and structured output.

Can I use this quality gate with existing ruff and mypy configurations?

Yes, you can use this quality gate with existing ruff and mypy configurations. It detects the project structure and existing configurations for ruff, pytest, mypy, and bandit to enforce the fixed execution order and output a comprehensive quality report.

What's the best way to automate pre-merge Python code quality reporting?

The best way to automate pre-merge Python code quality reporting is to use a deterministic quality gate that runs ruff, pytest, mypy, and bandit. It outputs a structured report with severity levels, pass/fail statuses, and actionable suggestions for reliable metrics.

Does the quality report include suggested fixes for bandit and mypy errors?

Yes, the quality report includes suggested fixes for errors detected by bandit, mypy, ruff, and pytest. The structured output is severity-driven and provides actionable suggestions to resolve identified code quality and security issues.