code-quality-gate

Community

Automate pre-commit code quality checks.

AuthorAfaneor
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill prevents faulty commits by enforcing a multi-stage code quality gate before changes are finalized.

Core Features & Use Cases

  • Stage 1: Code Formatting with Ruff Format to ensure consistent style and line length.
  • Stage 2: Linting with Ruff Check to catch unused imports, variables, and code smells.
  • Stage 3: Type Checking (Optional) with MyPy to ensure type correctness.
  • Stage 4: Tests with PyTest to verify functionality and prevent regressions.
  • Stage 5: Import Sorting to maintain a clean and stable import order.

Quick Start

Run the full quality gate locally using the recommended pipeline: poetry run ruff format . poetry run ruff check . --fix poetry run pytest tests/ -v

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: code-quality-gate
Download link: https://github.com/Afaneor/fastapi-docker-boilerplate/archive/main.zip#code-quality-gate

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.