forge-lang-python

Enforce Python development standards with pytest, ruff, black, and mypy.

1|Updated Dec 20, 2025
One-click install
npx skills add https://github.com/martimramos/claude-forge --skill forge-lang-python
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: forge-lang-python
Source: https://github.com/martimramos/claude-forge/tree/main/skills/languages/python
Command: npx skills add https://github.com/martimramos/claude-forge --skill forge-lang-python

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enforces Python development standards to ensure consistent, high-quality code across projects, from tests to linting and formatting.

Core Features & Use Cases

  • Testing: Provides guidelines for pytest usage, test structure, and fixtures to improve reliability.
  • Linting & Formatting: Standardized linting with ruff and formatting with black to maintain a clean codebase.
  • Type Checking: Consistent type checking with mypy to catch type issues early.
  • Project Setup: Templates and guidelines for pyproject.toml, tooling, and repository structure to accelerate onboarding.

Quick Start

  • Create a Python project structure with src/ and tests/ directories and a pyproject.toml configured for pytest, ruff, black, and mypy.
  • Run tests: pytest
  • Lint: ruff check .
  • Format: ruff format .
  • Type check: mypy src/

Frequently Asked Questions about forge-lang-python

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

FAQPage Schema
How do I set up Python linting and formatting with ruff and black?

Python linting and formatting with ruff and black requires a standard pyproject.toml configuration to maintain a clean codebase. You run ruff check . for linting and ruff format . for formatting to enforce consistent development standards.

What is the best way to structure a Python project for pytest and mypy?

The best way to structure a Python project for pytest and mypy is creating src/ and tests/ directories alongside a pyproject.toml file. This structure accelerates onboarding and ensures consistent type checking and reliable testing across projects.

Do I need a pyproject.toml to enforce Python coding standards?

Yes, a pyproject.toml is required to enforce Python coding standards. It provides the centralized configuration necessary to operate pytest, ruff, black, and mypy effectively across your testing, linting, formatting, and type checking workflows.

How does mypy type checking integrate with Python development workflows?

Mypy type checking integrates with Python development workflows by catching type issues early. You execute mypy src/ to scan your source code against standardized rules defined in your pyproject.toml, ensuring consistent high-quality code.

Can I use these Python coding standards for projects of any size?

Yes, you can apply these Python coding standards to projects of any size. The guidelines comprehensively cover tests, linting, formatting, and type checking workflows, ensuring consistent high-quality code from small scripts to large repositories.