Claude Python Setup — Testing skill for Claude Code
A CLAUDE.md template for setting up modern Python development environments with uv, ruff, pytest, and automated tooling.
How to install Claude Python Setup
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open omaciel/claude-python-setup and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Python Setup does
A CLAUDE.md template for setting up modern Python development environments with uv, ruff, pytest, and automated tooling.
Alternatives in Testing
- Test Runner — Run Python tests with pytest, unittest, or other testing frameworks 23.4k ★
- OpenAgentsControl — AI agent framework for plan-first development workflows with approval-based execution 4.8k ★
- Claude Code Spec Workflow — Automated Kiro-style Spec workflow for Claude Code 3.6k ★
README
Claude Python Setup
A comprehensive CLAUDE.md template for setting up modern Python development environments with uv, ruff, pytest, and automated tooling. This repository provides a battle-tested configuration that can be used with Claude Code to quickly bootstrap Python projects with best practices.
Overview
This repository contains a complete CLAUDE.md file that automates the setup of a modern Python development environment including:
- uv - Fast Python package manager and dependency resolver
- ruff - Lightning-fast Python linter and formatter
- pytest - Modern testing framework with coverage reporting
- pre-commit - Git hooks for code quality enforcement
- GitHub Actions - Automated CI/CD pipeline
- Makefile - Developer convenience commands
Quick Start
Option 1: Use with Claude Code
- Copy the
CLAUDE.mdfile to your Python project directory - Ask Claude Code to run the setup:
Run the Python development environment setup from CLAUDE.md
Option 2: Manual Setup
- Clone or download this repository
- Copy
CLAUDE.mdto your Python project - Run the setup commands from the CLAUDE.md file
What Gets Created
The setup process creates a complete development environment:
your-project/
├── .editorconfig # Editor configuration
├── .gitignore # Python-specific gitignore
├── .pre-commit-config.yaml # Pre-commit hooks
├── .github/workflows/ci.yml # GitHub Actions CI
├── CONTRIBUTING.md # Contribution guidelines
├── Makefile # Development commands
├── pyproject.toml # Project configuration
├── src/your_package/ # Package source code
│ └── __init__.py
└── tests/ # Test directory
└── test_example.py
Available Commands
After setup, use these Make commands for development:
make help- Show all available commandsmake dev- Set up development environmentmake test- Run tests with pytestmake lint- Run r
Related Skills
AI Project Template
Unified Python starter for AI projects: classical ML, deep learning, LLM apps, RAG, and agents. uv + Ruff + py
TDD Check
Run the full pre-commit verification suite — pytest, ruff, mkdocs build
Py Cq
CLI that aggregates ruff, ty, bandit, pytest, radon + 6 more into a single token-efficient LLM prompt. CI gate
Run Checks
Run all three quality gates (ruff, mypy, pytest) and print a single-screen pass/fail summary. Use before commi
Python Tooling Plugins
Claude Code plugins for Python tooling: type checking, formatting, linting, packaging, and testing.
Runtests
Run the project's automated checks (TypeScript, mypy, pytest if scoped) and summarise failures.
Related Agents
Standards Checker
Python standards gate — runs ruff, mypy, and pytest/tox, verifies PEP 8 and typing, and writes the standards r
Forge Tooling Expert
Use this agent when you need to set up, optimize, or improve development tooling, build systems, CI/CD pipelin
Py Bootstrap
Bootstrap Python and FastAPI projects with modern tooling. Use proactively when user wants to create a new Pyt