Skip to content

Commit

Permalink
Add pre commit docs and setup script (#19)
Browse files Browse the repository at this point in the history
* Add setup script

* Add .user.yml to .gitignore
  • Loading branch information
gwenwindflower authored Sep 28, 2023
1 parent 8a1b2fd commit 78f0007
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ env
*.wal

data/*.json.gz

.user.yml
1 change: 0 additions & 1 deletion .user.yml

This file was deleted.

2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
black~=23.9.1
dbt-metricflow[duckdb]~=0.3.0
duckdb~=0.8.1
halo~=0.0.31
isort~=5.12.0
pre-commit~=3.4.0
Expand All @@ -8,4 +9,3 @@ ruff~=0.0.291
sqlfluff-templater-dbt~=2.3.2
sqlfluff~=2.3.2
tqdm~=4.66.1
duckdb~=0.8.1
25 changes: 25 additions & 0 deletions setup.sh
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

0 comments on commit 78f0007

Please sign in to comment.