-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
34 lines (34 loc) · 984 Bytes
/
.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
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
args: ["--unsafe"]
- id: trailing-whitespace
exclude: "^datasets/pinochet-rettig/semantics/mapping.protege.obda"
- id: detect-private-key
- id: name-tests-test
args: ["--pytest-test-first"]
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black
args: ["--line-length", "88"]
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: "v0.0.283"
hooks:
- id: ruff
- repo: https://github.com/sqlfluff/sqlfluff
rev: 2.3.5
hooks:
- id: sqlfluff-fix
additional_dependencies: ["dbt-postgres", "sqlfluff-templater-dbt"]
- id: sqlfluff-lint
additional_dependencies: ["dbt-postgres", "sqlfluff-templater-dbt"]
fail_fast: false
files: ".*"
exclude: "desktop.ini" # Windows
default_language_version:
python: python3.10