From 85735e332d25d9e1d117c3f63c6a00dd39406e3f Mon Sep 17 00:00:00 2001 From: sspaeti Date: Tue, 15 Nov 2022 13:00:54 +0100 Subject: [PATCH] add gitignore and do not overwrite backup dbt_profile --- .gitignore | 56 +++++++++++++++++++++++++++++++ transformation_dbt/pyproject.toml | 2 +- 2 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0438ba9 --- /dev/null +++ b/.gitignore @@ -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 diff --git a/transformation_dbt/pyproject.toml b/transformation_dbt/pyproject.toml index beb9d49..b51a7e0 100644 --- a/transformation_dbt/pyproject.toml +++ b/transformation_dbt/pyproject.toml @@ -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" }