code-quality

Run Ruff, Mypy, and Pytest checks before Python commits.

3|3|Updated Dec 16, 2025
One-click install
npx skills add https://github.com/Shakes-tzd/htmlgraph --skill code-quality-shakes-tzd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-quality
Source: https://github.com/Shakes-tzd/htmlgraph/tree/main/packages/claude-plugin/skills/code-quality-skill
Command: npx skills add https://github.com/Shakes-tzd/htmlgraph --skill code-quality-shakes-tzd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates code quality checks by performing linting, type checking, and tests before commits to prevent introducing defects.

Core Features & Use Cases

  • Automated linting and formatting with Ruff to catch style issues and enforce consistency.
  • Static type checking with Mypy to ensure correct type usage across modules.
  • Test execution with Pytest to validate functionality before changes are merged.
  • Pre-commit workflow automation to enforce quality gates and reduce review time.

Use this skill in Python development workflows to maintain code quality across contributors and accelerated feedback during development.

Quick Start

Before committing, run the following to ensure a clean, passing codebase:

  • uv run ruff check --fix
  • uv run ruff format
  • uv run mypy src/
  • uv run pytest
  • git commit -m "..."

Frequently Asked Questions about code-quality

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

FAQPage Schema
How do I automate Python code quality checks before commits?

Automate Python code quality checks before commits by configuring pre-commit hooks to run Ruff for linting, Mypy for static type checking, and Pytest for test execution. This enforces quality gates locally and in CI environments to prevent introducing defects.

What is the best way to run linting and type checking together in a Python workflow?

The best way to run linting and type checking together is using a unified pre-commit workflow. Execute Ruff for style enforcement and Mypy for static type validation sequentially to ensure correct type usage across modules before changes are merged.

Does Ruff work with Mypy and Pytest in a pre-commit workflow?

Yes, Ruff works with Mypy and Pytest in a pre-commit workflow. Running Ruff for linting, Mypy for type checking, and Pytest for tests provides deterministic checks and fast feedback across local and CI environments.

Why use pre-commit hooks for Python static analysis and testing?

Use pre-commit hooks for Python static analysis and testing to catch style issues and validate functionality before changes are merged. This automation enforces code quality gates uniformly across contributors and reduces review time.

Can I use this automated code quality workflow in CI environments?

Yes, you can use this automated code quality workflow in CI environments. The unified quality gates run Ruff, Mypy, and Pytest deterministically to provide fast feedback and enforce consistency across local development and continuous integration pipelines.

How do I format Python code and catch style issues before committing?

Format Python code and catch style issues before committing by running Ruff check and Ruff format. This automated linting step enforces consistency and fixes style issues locally before executing type checking and tests.