python

Enforce Python project conventions and dependency management with pyproject.toml and uv.

1|2|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/michaelsvanbeek/personal-agent-skills --skill python-michaelsvanbeek
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python
Source: https://github.com/michaelsvanbeek/personal-agent-skills/tree/main/skills/python
Command: npx skills add https://github.com/michaelsvanbeek/personal-agent-skills --skill python-michaelsvanbeek

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides conventions and standards for Python projects to ensure consistency, quality, and maintainability.

Core Features & Use Cases

  • Python version guidance, type hints, docstrings, and packaging configurations
  • Dependency management with pyproject.toml and uv as the project manager
  • Linting and typing tooling guidance (ruff, mypy) and test setup with pytest

Quick Start

Create a new project with uv init my-project, then add runtime dependencies such as fastapi, mangum, pydantic, and pydantic-settings, and run tests with pytest.

Frequently Asked Questions about python

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

FAQPage Schema
How do I configure a Python project with pyproject.toml and uv?

Configure a Python project by initializing it with uv init, adding runtime dependencies like fastapi and pydantic, and defining build settings, type hints, and dev tooling in pyproject.toml to enforce consistent conventions.

What's the best way to enforce docstrings and type hints in a Python codebase?

Enforce docstrings and type hints by codifying them as explicit project requirements and configuring static analysis tools like mypy and ruff within pyproject.toml to audit and maintain codebase quality.

Does ruff work with mypy for Python linting and type checking?

Yes, ruff and mypy work together as dev tooling. Ruff handles linting while mypy manages static type checking, both configured through pyproject.toml to standardize Python project quality and maintainability.

Why do I need pyproject.toml for Python dependency management?

You need pyproject.toml for Python dependency management because it standardizes project setup, allowing uv to manage runtime dependencies like mangum and pydantic-settings while codifying dev tool configurations.

Can I use pytest with uv for Python project test setup?

Yes, you can use pytest with uv for Python project test setup. Initialize with uv init, add required dependencies, and run tests with pytest to satisfy standardized testing requirements.

What are the limitations of using uv for Python project setup?

A limitation of using uv for Python project setup is that it requires explicit configuration of coding standards in pyproject.toml; without enforcing type hints and docstrings, the codebase audit will not maintain consistency.