python-code-style

Enforce Python code style and type checking with ruff and mypy.

Updated Mar 5, 2026
One-click install
npx skills add https://github.com/Himanshu040604/codex-skills-setup --skill python-code-style-himanshu040604
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-code-style
Source: https://github.com/Himanshu040604/codex-skills-setup/tree/main/assets/codex/skills/claude-import/skills/plugins/python-development%40claude-code-workflows/skills/python-code-style
Command: npx skills add https://github.com/Himanshu040604/codex-skills-setup --skill python-code-style-himanshu040604

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the challenges of inconsistent Python code formatting, naming conventions, and documentation, leading to more maintainable and collaborative projects.

Core Features & Use Cases

  • Automated Formatting & Linting: Leverages modern tools like ruff to enforce style guides automatically.
  • Type Checking: Integrates mypy or pyright for robust static type analysis.
  • Naming Conventions: Guides users on PEP 8 compliant naming for variables, functions, classes, and constants.
  • Docstring Standards: Promotes clear, Google-style docstrings for better code understanding.
  • Use Case: When starting a new Python project, use this Skill to set up pyproject.toml with ruff and mypy configurations to ensure code quality from the outset.

Quick Start

Configure your project's pyproject.toml file with ruff and mypy settings to enforce code style and type checking.

Frequently Asked Questions about python-code-style

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

FAQPage Schema
How do I set up Python code style and linting for a new project?

You can enforce Python code style and linting by configuring ruff and mypy settings in your project's pyproject.toml file to automatically apply PEP 8 formatting and type checking standards.

What is the best way to enforce PEP 8 naming conventions and formatting?

The best way to enforce PEP 8 naming conventions and formatting is by using modern automated tools like ruff to automatically apply style guides for variables, functions, classes, and constants.

How do I write Python docstrings that meet documentation standards?

To write Python docstrings that meet documentation standards, follow clear, Google-style docstring formats to promote better code understanding and maintainability across your project.

Does static type checking work with ruff for Python code reviews?

Static type checking works alongside ruff by integrating mypy or pyright for robust type analysis, while ruff handles linting and formatting during code reviews.

Why do I need type checking and linting configuration for Python maintainability?

You need type checking and linting configuration for Python maintainability to address inconsistent formatting and naming, ensuring code quality and collaboration when adhering to PEP 8 guidelines.