python-code-style

Configure ruff and mypy linting, type checking, and docstring standards in pyproject.toml.

Updated Mar 16, 2026
One-click install
npx skills add https://github.com/Sanali209/BCor --skill python-code-style-sanali209
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-code-style
Source: https://github.com/Sanali209/BCor/tree/main/.agents/skills/python-code-style
Command: npx skills add https://github.com/Sanali209/BCor --skill python-code-style-sanali209

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Python projects often suffer from inconsistent style and vague documentation, which slows collaboration, increases bug risk, and makes onboarding harder.

Core Features & Use Cases

  • Modern tooling configuration and enforcement (ruff, mypy) to ensure code quality and consistency.
  • Google-style docstrings and clear type annotations to improve readability and maintainability.
  • Documentation-as-code practices and project-wide standards to streamline onboarding and knowledge transfer.

Quick Start

Install the recommended tooling and integrate the configuration into your project to enforce style and documentation.

Frequently Asked Questions about python-code-style

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

FAQPage Schema
How do I configure ruff and mypy for Python code style enforcement?

Configure ruff and mypy for Python code style enforcement by centralizing settings inside a pyproject.toml file. This targets new projects and code reviews to automate linting and type checking.

What is the best way to enforce Python docstring standards across a project?

Enforce Python docstring standards by defining modern style configurations for tools like ruff. This ensures consistent Google-style docstrings and clear type annotations across the codebase.

Does this Python coding standards configuration work for ongoing code reviews?

Yes, this configuration works for ongoing code reviews. It targets existing projects by applying documentation-as-code practices, type annotations, and centralized linting rules to maintain code quality.

How do I set up type annotations and linting in a pyproject.toml file?

Set up type annotations and linting in a pyproject.toml file by defining centralized configurations for mypy and ruff. This enforces modern Python style and governance across the codebase.

Why should I centralize Python lint and type checking configurations?

Centralize Python lint and type checking configurations to solve inconsistent style and vague documentation. Centralized pyproject.toml settings streamline onboarding, reduce bug risk, and improve maintainability.