-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
36 lines (33 loc) · 985 Bytes
/
.pre-commit-config.yaml
File metadata and controls
36 lines (33 loc) · 985 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
repos:
# Generic file hygiene
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
# Terraform
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.105.0
hooks:
- id: terraform_fmt
# SQL formatting
- repo: https://github.com/sqlfluff/sqlfluff
rev: 4.0.4
hooks:
- id: sqlfluff-fix
additional_dependencies: ["sqlfluff[rs]"]
# Mirror .sqlfluffignore — pre-commit passes filenames directly to SQLFluff,
# which bypasses .sqlfluffignore. This exclude ensures they are skipped.
exclude: |
(?x)^(
data-queries/v1_deprecated/|
dbt/models/bigquery/.*
)
# YAML formatting
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
files: \.(yaml|yml)$