From a1338061cd75add00bec8ead4bf8dad8a1b95d9f Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Sun, 22 Sep 2024 00:36:21 +0100 Subject: [PATCH] ci: update sqlfluff hook to only run on single file --- .pre-commit-config.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0a4bf63..9295f5e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,10 +22,12 @@ repos: rev: 3.1.0 hooks: - id: sqlfluff-lint - files: ^fmtm_splitter/.*\.sql$ + files: ^fmtm_splitter/fmtm_algorithm.sql + # files: ^fmtm_splitter/.*\.sql$ types: [sql] - id: sqlfluff-fix - files: ^fmtm_splitter/.*\.sql$ + files: ^fmtm_splitter/fmtm_algorithm.sql + # files: ^fmtm_splitter/.*\.sql$ types: [sql] # Autoformat: YAML, JSON, Markdown, etc.