Skip to content

Commit

Permalink
with virtualenv
Browse files Browse the repository at this point in the history
  • Loading branch information
laysabit committed Mar 28, 2024
1 parent 4e2273b commit a8a139e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,29 @@
#!/bin/sh

# Install virtualenv if not installed
pip install virtualenv

# Create a new virtual environment
virtualenv env

# It gives permission to activate the virtual environment
chmod +x ./env/bin/activate

# Activate the virtual environment
source env/bin/activate # On Windows, use `env\Scripts\activate`

# Install requirements
pip install -r ./requirements.txt

# It installs pre-commit hooks into your Git repository.
pre-commit install -c .pre-commit-config.yaml

# Dbt deps command is used to download and manage the dependencies of a dbt project.
dbt deps

# It gives permission to execute the cleanup script
chmod +x ./pre-commit/cleanup.sh

# It gives permission to execute the for_pre_commit script
chmod +x ./pre-commit/for_pre_commit.sh

0 comments on commit a8a139e

Please sign in to comment.