
Python Code Style
Covers the full spectrum of Python code quality tooling with a focus on modern practices like ruff over black/flake8 and 120-character line limits. The configurations are production-ready, especially the pyproject.toml setups for ruff and mypy that you can drop straight into a project. Heavy emphasis on Google-style docstrings with realistic examples that show proper argument documentation and exception handling. The naming convention examples are spot-on for teams trying to establish consistency. This handles the boring-but-critical setup work that every Python project needs but most developers piece together from scattered sources.
- install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
- 14
- skills.sh installs
- 17.1K
- GitHub stars
- 42.4K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add wshobson/agents --skill python-code-style --agent claude-codeInstalls into .claude/skills of the current project.
Files
Python Code Style & Documentation
Consistent code style and clear documentation make codebases maintainable and collaborative. This skill covers modern Python tooling, naming conventions, and documentation standards.
When to Use This Skill
- Setting up linting and formatting for a new project
- Writing or reviewing docstrings
- Establishing team coding standards
- Configuring ruff, mypy, or pyright
- Reviewing code for style consistency
- Creating project documentation
Core Concepts
1. Automated Formatting
Let tools handle formatting debates. Configure once, enforce automatically.
2. Consistent Naming
Follow PEP 8 conventions with meaningful, descriptive names.
3. Documentation as Code
Docstrings should be maintained alongside the code they describe.
4. Type Annotations
Modern Python code should include type hints for all public APIs.
Quick Start
# Install modern tooling
pip install ruff mypy
# Configure in pyproject.toml
[tool.ruff]
line-length = 120
target-version = "py312" # Adjust based on your project's minimum Python version
[tool.mypy]
strict = true
Fundamental Patterns
Pattern 1: Modern Python Tooling
Sponsors
Details
- Repository
- github.com/wshobson/agents
- Categories
- Documentation, Code Review & Quality, Python
More from wshobson/agents
All 174- Openapi Spec Generation17K
- Interaction Design17K
- Design System Patterns16.7K
- Terraform Module Library16.1K
- React Native Design16.1K
- React State Management15.9K
- Solidity Security15.8K
- Uv Package Manager15.7K
- React Native Architecture15.6K
- Gdpr Data Handling15.4K
- Python Project Structure15.4K
- Accessibility Compliance15.2K
- K8s Security Policies15.1K
- Monorepo Management15K
- Python Error Handling14.7K
- Rag Implementation14.4K
- Deployment Pipeline Design14.2K
- Changelog Automation14.2K
- Bash Defensive Patterns14.1K
- Visual Design Foundations14.1K
- Debugging Strategies13.9K
- Python Anti Patterns13.8K
- Stripe Integration13.8K
- Microservices Patterns13.7K