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. …
A quick uv recipe I figured out today, for running the tests for a project against multiple Python versions. …
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: …
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. …