Simon Willison: TILs on uv

Atom feed for uv

uv Dependency groups and uv run - 2025-12-02

I've adopted a new (to me) pattern for my Python projects to make them easier to hack on using uv run. I'm using a PEP 735 dependency group called dev to declare my development dependencies - in particular pytest - such that running uv run pytest executes the tests for my project without me having to even think about setting up a virtual environment first. …

uv Testing different Python versions with uv with-editable and uv-test - 2025-10-08

A quick uv recipe I figured out today, for running the tests for a project against multiple Python versions. …

uv Running pytest against a specific Python version with uv run - 2025-02-04

While working on this issue I figured out a neat pattern for running the tests for my project locally against a specific Python version using uv run: …

uv Using uv to develop Python command-line applications - 2024-10-23

I finally figured out a process that works for me for hacking on Python CLI utilities using uv to manage my development environment, thanks to a little bit of help from Charlie Marsh. …