python-quality-gate
SolidPython quality checks: ruff, pytest, mypy, bandit in deterministic order.
AI & Automation 393 stars
36 forks Updated today MIT
Install
Quality Score: 95/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
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
AI & Automation Solid
universal-quality-gate
Multi-language code quality gate with auto-detection and linters.
393 Updated today
notque AI & Automation Listed
verification-quality-gates
Гейты качества перед delivery: тесты, lint (ruff/ESLint v9/Biome), types (pyright), LSP, browser/security/design. Используй для: проверки, тесты, линтер, типы, качество, доказательства. EN triggers: quality gates, run tests, run linter, type check, run LSP checks, run all checks, verify before delivery, evidence-based pass.
1 Updated today
NDDev-it-com AI & Automation Listed
cm-quality-gate
Use before any deployment or completion claim. Enforces test gates, evidence-based verification, and frontend safety checks. No deploy without passing. No claims without evidence.
45 Updated yesterday
tody-agent