python-setup-dev-environment

Set up a reproducible Python environment with uv, ruff, mypy, and VSCode.

2|Updated Feb 12, 2026
One-click install
npx skills add https://github.com/RyoMurakami1983/skills_repository --skill python-setup-dev-environment
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-setup-dev-environment
Source: https://github.com/RyoMurakami1983/skills_repository/tree/main/python/python-setup-dev-environment
Command: npx skills add https://github.com/RyoMurakami1983/skills_repository --skill python-setup-dev-environment

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the setup and ongoing management of a Python development environment, ensuring consistency and reproducibility across different machines and team members.

Core Features & Use Cases

  • Environment Initialization: Sets up a project with uv for dependency management.
  • Dependency Management: Adds and manages development dependencies like ruff and mypy.
  • Standardized Execution: Enforces the use of uv run for all Python commands to prevent environment drift.
  • Quality Checks: Integrates ruff for linting/formatting and mypy for type checking in a defined order.
  • Editor Integration: Configures VSCode for safe, explicit save-time formatting and code actions.
  • Reproducibility Verification: Provides steps to ensure the environment can be recreated reliably.
  • Use Case: When starting a new Python project, use this skill to quickly establish a robust, reproducible development environment that includes linting, formatting, and type checking, ensuring code quality from the outset.

Quick Start

Initialize your Python project and add ruff and mypy as development dependencies by running uv init . followed by uv add --dev ruff mypy.

Frequently Asked Questions about python-setup-dev-environment

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

FAQPage Schema
How do I set up a reproducible Python development environment with uv?

Initialize your project with `uv init .` and add dev tools using `uv add --dev ruff mypy` to establish a reproducible Python environment. This locks dependencies and prevents environment drift across different machines.

What is the best way to integrate ruff and mypy into a Python project?

Integrate ruff and mypy by adding them as development dependencies via `uv add --dev ruff mypy`. This ensures consistent linting, formatting, and type checking by running all Python commands through `uv run`.

How do I configure VSCode to format Python code on save using ruff?

Configure VSCode for safe, explicit save-time formatting and code actions by integrating ruff. This enforces consistent code quality by automatically applying formatting rules when you save files.

Why should I use uv run for all Python commands in my development environment?

Use `uv run` for all Python commands to prevent environment drift and ensure reproducibility. It guarantees script execution happens within the strictly managed dependency context defined by uv.

How do I verify that my Python development environment is reproducible?

Verify environment reproducibility by recreating the setup from scratch using uv's lockfile. This confirms that dependencies and tooling configurations remain consistent across different machines and team members.

Does uv work with VSCode for managing Python dependencies and code quality?

Yes, uv works with VSCode by configuring the editor for explicit save-time formatting and integrating ruff and mypy. This combines strict dependency management with automated linting and type checking.