← Catalog

No. 018 · code-quality

Modern Python

uv, ruff, ty, and pytest best practices

Version 1.0.0 License MIT Format SKILL.md

Use modern Python tooling: uv for package management, ruff for linting/formatting, ty for type checking, and pytest for testing. Covers Python 3.12+ patterns and the shift away from legacy tools.

When to use this skill

  • Setting up a new Python project
  • Migrating from pip to uv
  • Configuring ruff instead of flake8/black

Core concepts

This skill provides guidance on modern python best practices, patterns, and common pitfalls. It is designed to be loaded on demand when a relevant task is detected.

Installation

curl -LO https://opencode-skills.example/downloads/code-quality/modern-python.zip
unzip modern-python.zip -d ~/.config/opencode/skills/

Restart OpenCode — the skill loads automatically.

When it triggers

  • setting up a new Python project
  • migrating from pip to uv
  • configuring ruff instead of flake8/black