Skip to content

Commit

Permalink
add gitignore and do not overwrite backup dbt_profile
Browse files Browse the repository at this point in the history
  • Loading branch information
sspaeti committed Nov 15, 2022
1 parent 8336ee2 commit 85735e3
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 1 deletion.
56 changes: 56 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
.gradle
.idea
.vscode
*.iml
*.swp
.DS_Store
.dockerversions
.classpath
.project
.settings
.vscode

build

# Secrets
secrets

# Python
*.egg-info
__pycache__
.pyc
.eggs
.venv
.mypy_cache
.ipynb_checkpoints
*.ipynb
.pytest_

# Python unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# airbyte
airbyte/run/

#dbt
transformation_dbt/dbt_packages/
transformation_dbt/logs/
transformation_dbt/target/
transformation_dbt/profiles.yml


# open stack project
visualization/metabase/plugins
visualization/metabase/metabase.jar
2 changes: 1 addition & 1 deletion transformation_dbt/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ build-backend = "poetry.core.masonry.api"
test = { cmd = "dbt test", help= "run dbt tests for this project" }
update = { cmd = "poetry update", help = "update Python dependencies with Poetry" }
setup_dbt = { cmd = "dbt deps", help = "setup dbt deps" }
setup_dbt_profile1 = { cmd = "[ -f old ] && mv ~/.dbt/profiles.yml ~/.dbt/profiles_backup.yml", help = "setup dbt profile" }
setup_dbt_profile1 = { cmd = "mv -n ~/.dbt/profiles.yml ~/.dbt/profiles_backup.yml", help = "setup dbt profile" }
setup_dbt_profile2 = { cmd = "cp dbt_profiles.yml ~/.dbt/profiles.yml", help = "setup dbt profile" }
run = { cmd = "dbt run", help = "run dbt" }
sql_format = { cmd = "sqlfuff fix", help = "sqlfluff fix and format" }
Expand Down

0 comments on commit 85735e3

Please sign in to comment.