-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
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 | ||
|