
Automatically Activate Your Python Virtual Environment with uv run
π Python DX Tip: Save time when running scripts by using `uv run` to automatically activate your virtual environment.
Example below π
β Manually activating the virtual environment
source .venv/bin/activate
./nr_backup_configs.py
β
Automatically activate the virtual environment before running the script
uv run nr_backup_configs.py
Until next