-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
36 lines (34 loc) · 1.28 KB
/
.pre-commit-config.yaml
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:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/Zac-HD/shed
rev: 0.10.8
hooks:
- id: shed
# args: [--refactor, --py39-plus]
types_or: [python, pyi, markdown, rst]
- repo: https://github.com/sqlfluff/sqlfluff
rev: 2.0.2
hooks:
- id: sqlfluff-lint
args: [--dialect, bigquery,
--ignore, templating,
--config, .sqlfluff
]
# For dbt projects, this installs the dbt "extras".
# You will need to select the relevant dbt adapter for your dialect
# (https://docs.getdbt.com/docs/available-adapters):
additional_dependencies: ['dbt-bigquery==1.4.3', 'sqlfluff-templater-dbt']
# entry: bash -c 'exec env GOOGLE_APPLICATION_CREDENTIALS=/usr/credentials/wc-data-consolidated-gcs-user.json'
- id: sqlfluff-fix
# Arbitrary arguments to show an example
args: [--dialect, bigquery,
--ignore, templating,
--config, .sqlfluff
]
additional_dependencies: ['dbt-bigquery==1.4.3', 'sqlfluff-templater-dbt']
# entry: bash -c 'exec env GOOGLE_APPLICATION_CREDENTIALS=/usr/credentials/wc-data-consolidated-gcs-user.json'