Skip to content

Python

Stop Context-Switching: How Git Worktree + UV Revolutionized my python workflow

If you've ever found yourself frantically stashing changes, switching branches, and losing your mental context just to review a pull request or work on a quick hotfix, you know the pain.

For Python developers, this was made even worse by the overhead of managing virtual environments. But the combination of git worktree and uv has completely changed the game.

Pytest: does not raise

If you took the wise decision to test your codebase, you probably stumbled upon pytest as the defacto tool that offers a large suite of features and extensions.

However, there is a neat trick I like to use when testing, and I often get the "Wow! TIL about that!" reaction when introducing it.