From 39966bd5d445697b5fe5a9fe3053c61508e69728 Mon Sep 17 00:00:00 2001 From: Greg Finley Date: Sat, 28 Sep 2024 22:10:19 -0700 Subject: [PATCH 1/3] Bump SQLFluff and remove deprecated flag --- tox.ini | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tox.ini b/tox.ini index 36d6c35..18a1f26 100644 --- a/tox.ini +++ b/tox.ini @@ -7,7 +7,7 @@ exclude_rules = LT05, ST06, RF04, AM06, ST05, LT02 dialect = snowflake templater = dbt deps = - sqlfluff-templater-dbt==2.* + sqlfluff-templater-dbt==3.2.0 dbt-snowflake~=1.5.0 [testenv] @@ -34,11 +34,11 @@ commands = [testenv:fix] deps = {[sqlfluff]deps} -commands = sqlfluff fix {posargs} --ignore parsing -f +commands = sqlfluff fix {posargs} --ignore parsing [testenv:fix_all] deps = {[sqlfluff]deps} -commands = sqlfluff fix models --ignore parsing -f +commands = sqlfluff fix models --ignore parsing [testenv:generate_docs] deps = dbt-snowflake~=1.5.0 From eb0f35d140c9bd2e727818aa14a17ce79c5813e1 Mon Sep 17 00:00:00 2001 From: Greg Finley Date: Sat, 28 Sep 2024 22:14:57 -0700 Subject: [PATCH 2/3] Ignore end with semicolon --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 18a1f26..b581cbc 100644 --- a/tox.ini +++ b/tox.ini @@ -3,7 +3,7 @@ skipsdist = True envlist = integration_snowflake [sqlfluff] -exclude_rules = LT05, ST06, RF04, AM06, ST05, LT02 +exclude_rules = LT05, ST06, RF04, AM06, ST05, LT02, CV06 dialect = snowflake templater = dbt deps = From 4434f65f24c8b8dfb092a438e2d5602bc7d43181 Mon Sep 17 00:00:00 2001 From: Greg Finley Date: Sat, 28 Sep 2024 22:15:51 -0700 Subject: [PATCH 3/3] Lint fix --- models/staging/stg_serverless_task_history.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/staging/stg_serverless_task_history.sql b/models/staging/stg_serverless_task_history.sql index 34a324e..fd10239 100644 --- a/models/staging/stg_serverless_task_history.sql +++ b/models/staging/stg_serverless_task_history.sql @@ -1,7 +1,7 @@ {{ config( materialized='incremental', unique_key=['start_time', 'task_id'], -) }} +) }} select start_time,