Put the .envrc in your project folder where pyproject.toml also resides.
Then direnv allow.
Last active
December 16, 2025 11:53
-
-
Save reegnz/289f77b6845dde7dbb6a51e6e310a0c9 to your computer and use it in GitHub Desktop.
Using uv with direnv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if [ ! -d .venv ] || [ .python-version -nt .venv ]; then | |
| rm -rf .venv | |
| fi | |
| uv sync | |
| source .venv/bin/activate | |
| watch_file .python-version | |
| watch_file pyproject.toml | |
| watch_file uv.lock | |
| watch_file .venv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment