From 0bf713ac302e25bf2f18edd175b96f96cab44f38 Mon Sep 17 00:00:00 2001 From: Reuven Gonzales Date: Wed, 27 Mar 2024 11:26:43 -0700 Subject: [PATCH] Adds sqlfluff to lintstaged (#1147) --- .lintstagedrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.lintstagedrc b/.lintstagedrc index f7b238067..f7a20ee26 100644 --- a/.lintstagedrc +++ b/.lintstagedrc @@ -7,5 +7,9 @@ "**/*.{md,json}": [ "prettier --ignore-path .gitignore --write", "prettier --ignore-path .gitignore --log-level warn --check" + ], + "warehouse/dbt/**/*.sql": [ + "poetry run sqlfluff fix -f --dialect bigquery", + "poetry run sqlfluff lint --dialect bigquery" ] } \ No newline at end of file