skills.vishalvoidskills/vishalvoid
Technical & DevelopmentIntermediate

modern-python

Modern Python tooling with uv, ruff, ty, and pytest best practices

Developer Setup

Setup & Installation

bash
npx skills add https://github.com/trailofbits/skills --skill modern-python

Overview

What This Skill Does

Configures Python projects with uv, ruff, and ty — the modern replacements for pip, flake8/black, and mypy. Covers new projects, standalone scripts using PEP 723 inline metadata, and migrations from legacy tooling like Poetry or requirements.txt.

Application

When to use this Skill

Documentation

Show Skills.md file

Modern Python

Modern Python tooling and best practices using uv, ruff, ty, and pytest. Based on patterns from trailofbits/cookiecutter-python.

Author: William Tan

When to Use

  • Setting up a new Python project with modern, fast tooling
  • Replacing pip/virtualenv with uv for faster dependency management
  • Replacing flake8/black/isort with ruff for unified linting and formatting
  • Replacing mypy with ty for faster type checking
  • Adding pre-commit hooks and security scanning to an existing project

What It Covers

Core Tools:

  • uv - Package/dependency management (replaces pip, virtualenv, pip-tools, pipx, pyenv)
  • ruff - Linting and formatting (replaces flake8, black, isort, pyupgrade)
  • ty - Type checking (replaces mypy, pyright)
  • pytest - Testing with coverage enforcement
  • prek - Pre-commit hooks (replaces pre-commit)

Security Tools:

  • shellcheck - Shell script linting
Lines 1 - 25 of 66

Recommendations

Explore other random skills

All skillsMy patterns