Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion copier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,5 @@ dbt_adapter:
- redshift
- databricks
help: What dbt adapter are you using?
when: "{{not dbt_adapter and (setup_dbt_profile or setup_ci_cd or setup_sqlfluff)}}"
when: "{{not datacoves_dbt_adapter and (setup_dbt_profile or setup_ci_cd or setup_sqlfluff)}}"
default: snowflake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ files: ^{{ dbt_project_dir }}/models/
repos:
{% if use_dbt_checkpoint %}
- repo: https://github.com/dbt-checkpoint/dbt-checkpoint
rev: v2.0.1
rev: {{dbt_checkpoint_version}}

hooks:
- id: check-source-table-has-description
Expand All @@ -17,25 +17,24 @@ repos:
{% if use_sqlfluff %}
- repo: https://github.com/sqlfluff/sqlfluff
# this is the version of sqlfluff, needs to be updated when using a new sqlfluff version (pip show sqlfluff)
rev: 2.3.2
rev: {{sqlfluff_version}}
hooks:
- id: sqlfluff-lint
language: python
# Need these two dependencies.
# sqlfluff-templater-dbt should match the version of sqlfluff above in rev (pip show sqlfluff-templater-dbt)
# dbt-snowflake needs to match the version in transform tab of Datacoves (pip show dbt-snowflake)
additional_dependencies:
# ["sqlfluff-templater-dbt==2.3.2", "dbt-snowflake==1.6.8", dbt-core==1.6.9]
[
"sqlfluff-templater-dbt==2.3.2",
"dbt-redshift==1.6.7",
dbt-core==1.6.9,
sqlfluff-templater-dbt=={{sqlfluff_version}},
{% if 'snowflake' in dbt_adapter %}dbt-snowflake=={{dbt_adapter_version}},{% elif 'redshift' in dbt_adapter %}dbt-redshift=={{dbt_adapter_version}},{% elif 'databricks' in dbt_adapter %}dbt-databricks=={{dbt_adapter_version}},{% elif 'bigquery' in dbt_adapter %}dbt-bigquery=={{dbt_adapter_version}},{% endif %}
dbt-core=={{dbt_core_version}},
]
args: [--config, "{{ dbt_project_dir }}/.sqlfluff"]
{% endif %}
{% if use_yamllint %}
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.17.0
rev: {{yamllint_version}}
hooks:
- id: yamllint
args: [-c=.yamllint]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ jobs:
runs-on: ubuntu-latest

{% if 'snowflake' in dbt_adapter %}
container: datacoves/ci-basic-dbt-snowflake:3.2
container: datacoves/ci-basic-dbt-snowflake:{{datacoves_env_version}}
{% elif 'redshift' in dbt_adapter %}
container: datacoves/ci-basic-dbt-redshift:3.2
container: datacoves/ci-basic-dbt-redshift:{{datacoves_env_version}}
{% elif 'databricks' in dbt_adapter %}
container: datacoves/ci-basic-dbt-databricks:3.2
container: datacoves/ci-basic-dbt-databricks:{{datacoves_env_version}}
{% elif 'bigquery' in dbt_adapter %}
container: datacoves/ci-basic-dbt-bigquery:3.2
container: datacoves/ci-basic-dbt-bigquery:{{datacoves_env_version}}
{% endif %}

defaults:
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:

steps:
- name: Checkout branch
uses: actions/checkout@v3.5.0
uses: actions/checkout@v4
with:
fetch-depth: 0
{% raw %}ref: ${{ github.event.pull_request.head.sha }}{% endraw %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ jobs:
# https://github.com/<org>/<repo>/settings/environments
# environment: PR_ENV
{% if 'snowflake' in dbt_adapter %}
container: datacoves/ci-basic-dbt-snowflake:3.2
container: datacoves/ci-basic-dbt-snowflake:{{datacoves_env_version}}
{% elif 'redshift' in dbt_adapter %}
container: datacoves/ci-basic-dbt-redshift:3.2
container: datacoves/ci-basic-dbt-redshift:{{datacoves_env_version}}
{% elif 'databricks' in dbt_adapter %}
container: datacoves/ci-basic-dbt-databricks:3.2
container: datacoves/ci-basic-dbt-databricks:{{datacoves_env_version}}
{% elif 'bigquery' in dbt_adapter %}
container: datacoves/ci-basic-dbt-bigquery:3.2
container: datacoves/ci-basic-dbt-bigquery:{{datacoves_env_version}}
{% endif %}
defaults:
run:
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:

steps:
- name: Checkout branch
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
{% raw %}ref: ${{ github.event.push.head.sha }}{% endraw%}
fetch-depth: 0
Expand Down
2 changes: 0 additions & 2 deletions {{_copier_conf.answers_file}}.jinja

This file was deleted.

Loading