We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdd3afc commit be8c9f3Copy full SHA for be8c9f3
.direnvrc.example
@@ -0,0 +1,11 @@
1
+function load_venv () {
2
+ ACTUAL_VENV_PATH="$HOME/.venvs/$1"
3
+
4
+ if [ -d "$ACTUAL_VENV_PATH" ] && [ -f "$ACTUAL_VENV_PATH/bin/activate" ]; then
5
+ echo "direnv: Activating $ACTUAL_VENV_PATH..."
6
+ source "$ACTUAL_VENV_PATH/bin/activate"
7
+ export UV_PROJECT_ENVIRONMENT="$ACTUAL_VENV_PATH"
8
+ else
9
+ echo "direnv: Virtual environment at $ACTUAL_VENV_PATH not found or is incomplete."
10
+ fi
11
+}
.envrc.example
@@ -0,0 +1 @@
+load_venv deep
.gitignore
@@ -72,3 +72,6 @@ temp*
72
.env
73
74
pyrightconfig.json
75
76
+# direnv file
77
+.envrc
0 commit comments