The following is a collection of references I find useful for configuration.
I use uv for:
- venv management
- package management
- managing python version
- managing global tools like pyright, pytest, ruff with
uv tool
There is a .envrc
file for each project to set the virtualenv with
direnv
from the commandline and envrc-mode
in emacs. That file
mostly just activates the venv by calling source .venv/bin/activate
.
This solves venv and python version handling in emacs also.
References:
Lots of code adapted from: