-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pre commit docs and setup script (#19)
* Add setup script * Add .user.yml to .gitignore
- Loading branch information
1 parent
8a1b2fd
commit 78f0007
Showing
4 changed files
with
28 additions
and
2 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 |
---|---|---|
|
@@ -14,3 +14,5 @@ env | |
*.wal | ||
|
||
data/*.json.gz | ||
|
||
.user.yml |
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
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
# This script will run all of the initial setup commands for the project | ||
# That said, we encourage you to run the commands one by one in the terminal | ||
# so that you can see what is happening and understand the process better | ||
|
||
# Set up a Python virtual environment | ||
python3 -m venv .venv | ||
|
||
# Activate the virtual environment | ||
source .venv/bin/activate | ||
|
||
# Upgrade pip | ||
python3 -m pip install --upgrade pip | ||
|
||
# Install the Python dependencies | ||
python3 -m pip install -r requirements.txt | ||
|
||
# Install the pre-commit hooks | ||
pre-commit install | ||
|
||
# Install the Node dependencies | ||
npm install --prefix ./reports | ||
|
||
# Install the dbt packages | ||
dbt deps |