forked from OHDSI/dbt-synthea
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
42 lines (41 loc) · 1.49 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
37
38
39
40
41
42
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: detect-private-key
- id: check-added-large-files
args: ['maxkb=1024']
- id: check-executables-have-shebangs
- id: check-merge-conflict
# - id: no-commit-to-branch
# args: [--branch, main]
- id: requirements-txt-fixer
- repo: https://github.com/psf/black
rev: 24.1.1
hooks:
- id: black-jupyter
language_version: python3.12
# Caution: This will remove output cells in all Jupyter notebooks.
# However, prevents accidentally committing sensitive outputs in notebooks.
# To share output of notebooks that are not reproducible for others, export to html and save in reports/ folder.
- repo: https://github.com/kynan/nbstripout
rev: 0.6.1
hooks:
- id: nbstripout
# https://docs.sqlfluff.com/en/stable/production.html
# - repo: https://github.com/sqlfluff/sqlfluff
# rev: 2.3.5
# hooks:
# # - id: sqlfluff-lint
# # # 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-databricks', 'sqlfluff-templater-dbt']
# - id: sqlfluff-fix
# # Arbitrary arguments to show an example
# # args: [--rules, "LT02,CP02"]
# additional_dependencies: ['dbt-databricks', 'sqlfluff-templater-dbt']
# args: [--config, '.sqlfluff']