Skip to content

Commit

Permalink
fix: .envrc Ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
1ambda committed Sep 16, 2023
1 parent 2ecdccc commit 0098b90
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .envrc → .envrc.template
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ layout_virtualenv() {
local pyversion=$1
local pvenv=$2
if [ -n "$(which pyenv virtualenv)" ]; then
pyenv virtualenv --force --quiet ${pyversion} ${pvenv}-${pyversion}
pyenv virtualenv --force --quiet ${pyversion} ${pvenv}
fi
pyenv local --unset
}
Expand Down Expand Up @@ -44,10 +44,10 @@ else
fi

# Activate Environment
echo -e "${TAG} Activating pyenv virtualenv ${pvenv}-${pyversion}"
echo -e "${TAG} Activating pyenv virtualenv ${pvenv}"
use python ${pyversion}
layout virtualenv ${pyversion} ${pvenv}
layout activate ${pvenv}-${pyversion}
layout activate ${pvenv}
if ! [ -x "$(command -v poetry)" ]; then
pip3 install poetry
pip install --upgrade pip
Expand Down
13 changes: 10 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
### dbt ###
target/
dbt_modules/
dbt_packages/
logs/

### direnv ###
.direnv
.envrc

# Custom
__pycache__/
notebook/.ipynb_checkpoints/
Expand All @@ -7,9 +17,6 @@ notebook/.ipynb_checkpoints/
.ruff_cache/
logs/

# Created by https://www.toptal.com/developers/gitignore/api/maven,java,intellij+all,intellij+iml,git
# Edit at https://www.toptal.com/developers/gitignore?templates=maven,java,intellij+all,intellij+iml,git

### Git ###
# Created by git for backups. To disable backups in Git:
# $ git config --global mergetool.keepBackup false
Expand Down

0 comments on commit 0098b90

Please sign in to comment.