Python project tooling with uv, mise, Ruff, basedpyright, and pytest. Use for pyproject.toml, dependency groups, lockfiles, uv sync/run/build/publish, reproducible CI, Ruff, basedpyright, or Python tool-version setup. For uv multi-package layouts and Docker, use python-monorepo.
Ships in python. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Modern Python development tooling using uv, mise, Ruff, basedpyright, and pytest. Target Python 3.12-3.14 and stable tool releases.
[project]
name = "my-project"
version = "0.1.0"
requires-python = ">=3.12"
dependencies = ["fastapi", "pydantic"]
[dependency-groups]
dev = ["pytest", "pytest-cov", "ruff", "basedpyright"]
[build-system]
requires = ["hatchling>=1.27,<2"]
build-backend = "hatchling.build"
[tool.ruff]
target-version = "py312"
[tool.ruff.lint]
select = ["E", "F", "I", "N", "UP", "RUF"]
[tool.basedpyright]
typeCheckingMode = "strict"
[tool.pytest.ini_options]
testpaths = ["tests"]
uv init my-project && cd my-project
uv sync
uv add fastapi pydantic
uv add --dev pytest pytest-cov ruff basedpyright
| Tool | Purpose | Replaces |
|---|---|---|
| uv | Package and environment management | Many pip and virtualenv workflows |
| mise | Version & tasks | pyenv, asdf |
| ruff | Lint & format | Many Black, isort, and Flake8 workflows |
| basedpyright | Type checking | A stricter pyright-compatible checker |
| pytest | Testing | unittest |
uv run ruff check .
uv run ruff format --check .
# Apply changes locally, never in CI.
uv run ruff check --fix .
uv run ruff format .
uv run basedpyright
uv run basedpyright src/main.py
uv run pytest
uv run pytest --cov=src --cov-report=html
uv add fastapi
uv add --dev pytest
uv lock --upgrade
uv tree
Create .mise.toml for consistent development:
[tools]
python = "3.14"
[tasks.lint]
run = "uv run ruff check ."
[tasks.format]
run = "uv run ruff format --check ."
[tasks.typecheck]
run = "uv run basedpyright"
[tasks.test]
run = "uv run pytest"
[tasks.check]
depends = ["lint", "format", "typecheck", "test"]
Usage:
mise install
mise run check
from decimal import Decimal
from typing import Optional
def calculate_discount(
total: Decimal,
rate: Optional[Decimal] = None
) -> Decimal:
if rate is None:
rate = Decimal("0.1")
return total * rate
uv.lock and use uv sync --locked in CI.tool.uv.required-version; refresh deliberately.For detailed configuration and advanced patterns:
What SKILL.md sets; muted values are Claude Code's defaults
No slash command · from python
npx claudepluginhub martinffx/python-skills --plugin python8 skills in this plugin
/python-architecturePython application architecture for complex business behavior: functional decisions and effects, ports and adapters, aggregates, transaction ownership, and bounded contexts. Use when choosing application or domain boundaries, modeling evolving invariants, or deciding whether DDD is warranted. Do not apply rich DDD layers automatically to simple CRUD or framework DTOs./python-fastapiFastAPI APIs with Pydantic, OpenAPI, dependencies, security, middleware, lifespan, and response models. Use for routes, validation, authentication or authorization, database-session dependencies, CORS, sync versus async handlers, pagination, errors, or startup and shutdown resources. For ORM mechanics, use python-sqlalchemy./python-modern-python