python-style

Review Python code against Barrett's style guide for violations and fixes.

Updated Mar 7, 2016
One-click install
npx skills add https://github.com/BarrettLowe/dotfiles --skill python-style-barrettlowe
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-style
Source: https://github.com/BarrettLowe/dotfiles/tree/main/claude/skills/python-style
Command: npx skills add https://github.com/BarrettLowe/dotfiles --skill python-style-barrettlowe

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Ensures Python code adheres to a defined style guide, enhancing readability and maintainability.

Core Features & Use Cases

  • Code Review: Flag style violations and suggest fixes.
  • Style Guide: Follows Barrett's Python style guide on annotations, dataclasses, Pydantic, ABC, EAFP, and async-first.
  • Use Case: Before committing code, use this skill to ensure that your code follows the established style guide, improving code quality across your team.

Quick Start

Apply the python-style skill to review the code in the current branch.

Frequently Asked Questions about python-style

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

FAQPage Schema
How do I enforce Python coding standards in my code repository?

You can enforce Python coding standards by applying a code review skill that checks your repository against a predefined style guide, identifying violations and suggesting corrections. This skill reviews Python code for style consistency and best practices.

What Python style guide rules does this code review check?

This code review checks Python code against a style guide covering annotations, dataclasses, Pydantic, ABC, EAFP, and async-first principles. It flags violations and suggests corrections to ensure style consistency.

Can I integrate Python style enforcement into my CI/CD pipelines?

Yes, you can integrate this Python style enforcement into CI/CD pipelines. It requires no external dependencies, allowing you to automatically review code and ensure it follows established style guides before committing.

What's the best way to automate code review for Python style consistency?

The best way to automate code review for Python style consistency is to apply a style enforcement skill before committing code. It reviews the current branch, flags style guide violations, and suggests fixes to improve code quality.

Do I need external dependencies to check Python code for style violations?

No, you do not need any external dependencies to check Python code for style violations. This skill operates independently to review code repositories and identify deviations from the established Python style guide.