python-code-style

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

2|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/yashvinthan/DuskSpendr --skill python-code-style-yashvinthan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-code-style
Source: https://github.com/yashvinthan/DuskSpendr/tree/main/.agents/skills/python-code-style
Command: npx skills add https://github.com/yashvinthan/DuskSpendr --skill python-code-style-yashvinthan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the challenge of maintaining consistent, readable, and maintainable Python code across projects and teams by providing guidance and tools for code style, linting, formatting, naming conventions, and documentation.

Core Features & Use Cases

  • Automated Formatting: Configure and use tools like ruff to automatically format code.
  • Linting and Style Checks: Ensure code adheres to PEP 8 and other best practices.
  • Docstring Standards: Implement clear and consistent documentation using Google-style docstrings.
  • Type Hinting: Enforce type safety with tools like mypy or pyright.
  • Use Case: When starting a new Python project, use this skill to set up ruff and mypy configurations in pyproject.toml to ensure code quality from the outset.

Quick Start

Configure your project's pyproject.toml file with ruff and mypy settings.

Frequently Asked Questions about python-code-style

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

FAQPage Schema
How do I enforce Python code style and formatting in a new project?

You can enforce Python code style and formatting by configuring ruff and mypy settings in your pyproject.toml file to automate linting, type checking, and PEP 8 compliance from the outset.

What is the best way to set up automated Python linting and type checking?

The best way to set up automated Python linting and type checking is using modern tools like ruff for formatting and style enforcement, combined with mypy to enforce type safety and maintainability.

How do I configure ruff and mypy for consistent Python code reviews?

Configure ruff and mypy in your pyproject.toml to establish project-wide coding standards, ensuring consistent Python code reviews by automating checks for readability, naming conventions, and type safety.

Does this Python code style approach support Google-style docstring standards?

Yes, this Python code style approach supports Google-style docstrings, allowing you to implement clear and consistent documentation standards across your project alongside automated linting and formatting.

Why should I use ruff for Python code formatting instead of other linters?

You should use ruff for Python code formatting because it provides modern, automated configuration for PEP 8 adherence and best practices, streamlining project-wide maintainability and team collaboration.

Can I enforce Python naming conventions and type hints in pyproject.toml?

Yes, you can enforce Python naming conventions and type hints by defining mypy and ruff configurations directly within your pyproject.toml file to maintain strict code quality and type safety.