modern-python

Enforce modern Python type syntax, uv package management, and ruff/ty linting.

60|2|Updated Apr 16, 2015
One-click install
npx skills add https://github.com/davidgasquez/dotfiles --skill modern-python-davidgasquez
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: modern-python
Source: https://github.com/davidgasquez/dotfiles/tree/main/agents/skills/modern-python
Command: npx skills add https://github.com/davidgasquez/dotfiles --skill modern-python-davidgasquez

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires ruff, ty, uv.

What problem does it solve?

This Skill ensures Python code adheres to modern best practices, improving readability, maintainability, and performance.

Core Features & Use Cases

  • Modern Syntax: Enforces current Python type hinting and expression syntax.
  • Tooling Integration: Leverages uv for package management and execution, and ruff for linting and formatting.
  • Use Case: When reviewing a Python codebase, use this Skill to automatically identify and suggest fixes for outdated syntax, unformatted code, and potential type errors.

Quick Start

Use the modern-python skill to format and lint the current directory.

Frequently Asked Questions about modern-python

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

FAQPage Schema
How do I enforce modern Python type checking and formatting in my codebase?▼

You can enforce modern Python practices by applying this Skill to automatically run `ruff` for formatting and linting, `ty` for type checking, and `uv` for package management, ensuring clean and maintainable code.

What is the best way to lint and format Python code using ruff and uv?▼

The best way to lint and format Python code is using `ruff` executed via the `uv` package manager, which this Skill automatically enforces to identify outdated syntax and apply modern formatting rules.

Does this Python linting approach require specific dependencies like ruff and ty?▼

Yes, this Python linting approach requires `ruff` for formatting and linting, `ty` for type checking, and `uv` for package management and execution to properly enforce modern syntax and best practices.

Can I use this Skill to review and refactor an existing Python codebase?▼

Yes, you can use this Skill to review and refactor an existing Python codebase by automatically identifying and suggesting fixes for outdated syntax, unformatted code, and potential type errors.

Why should I use uv for Python package management instead of other tools?▼

You should use `uv` for Python package management because this Skill leverages it to standardize execution and dependency resolution, ensuring consistent modern Python development environments across your codebase.