python

Automates Python 3.12+ project setup and code quality checks with uv, ruff, pyright, pytest, and fastapi.

Updated Jul 15, 2024
One-click install
npx skills add https://github.com/christian-deleon/dotfiles --skill python-christian-deleon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python
Source: https://github.com/christian-deleon/dotfiles/tree/main/ai/skills/python
Command: npx skills add https://github.com/christian-deleon/dotfiles --skill python-christian-deleon

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires uv, ruff, pyright, mypy, pytest, fastapi, httpx, pydantic, structlog, typing, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill streamlines the development of Python scripts and applications, offering a modern, idiomatic approach with a focus on efficiency and maintainability.

Core Features & Use Cases

  • Modern Python Practices: Enforces best practices for Python 3.12+ development, including type hints, async/await, and modern libraries.
  • Project Setup: Automates project initialization and dependency management with uv.
  • Code Quality: Provides linters and formatters to ensure code quality with ruff and pyright.
  • Testing: Integrates with pytest for robust testing of applications and scripts.
  • Use Case: Ideal for a developer looking to build Python applications that leverage modern features and tools.

Quick Start

Initialize a new Python project and set up a virtual environment with the default stack.

Frequently Asked Questions about python

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

FAQPage Schema
How do I set up a modern Python project with uv and automated code quality checks?

Initialize a new Python project and virtual environment using uv, then configure ruff and pyright to automatically enforce code quality, formatting, and type checking standards.

What is the best way to enforce type hints and static analysis in Python 3.12+?

Enforce type hints in Python 3.12+ by integrating pyright and mypy for static analysis, ensuring code maintains idiomatic structure and strict type safety standards.

Does this Python development approach require fastapi and pytest for building applications?

Full functionality requires fastapi for application development and pytest for robust testing, alongside uv, ruff, pyright, mypy, pydantic, structlog, and typing dependencies.

How do I structure async Python applications using pydantic and structlog?

Structure async Python applications by leveraging async/await syntax, utilizing pydantic for robust data validation, and integrating structlog for structured, maintainable logging outputs.

Why use ruff instead of other linters for modern Python code quality?

Use ruff for modern Python code quality because it delivers fast, comprehensive linting and formatting, replacing multiple traditional tools to streamline project setup and maintainability.