Basic sql and linting
This commit is contained in:
8
.pre-commit-config.yaml
Normal file
8
.pre-commit-config.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
repos:
|
||||
- repo: https://github.com/sqlfluff/sqlfluff
|
||||
rev: 3.0.7 # Use the latest stable version
|
||||
hooks:
|
||||
- id: sqlfluff-lint
|
||||
args: [--dialect, postgres]
|
||||
# Only run on files in the db/ directory ending in .sql
|
||||
files: ^collector/db/.*\.sql$
|
||||
Reference in New Issue
Block a user