-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
45 lines (42 loc) · 1.9 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
45 lines (42 loc) · 1.9 KB
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
43
44
45
repos:
# ── Ruff: lint + format ──────────────────────────────────────────────────
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.4
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
files: ^producers/
- id: ruff-format
files: ^producers/
# ── Standard file hygiene ────────────────────────────────────────────────
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
args: [--unsafe] # docker-compose uses !! tags
- id: check-json
- id: check-merge-conflict
- id: check-added-large-files
args: [--maxkb=500]
- id: mixed-line-ending
args: [--fix=lf]
- id: detect-private-key
# ── dbt: compilation check ───────────────────────────────────────────────
# Note: Full dbt validation runs in CI, not in pre-commit for performance
# Uncomment if you want local dbt checks:
# - repo: local
# hooks:
# - id: dbt-compile
# name: dbt compile
# entry: bash -c 'cd fraud_detection && dbt compile --profiles-dir .'
# language: system
# files: ^fraud_detection/models/.*\.sql$
# pass_filenames: false
# ── Shell scripts ────────────────────────────────────────────────────────
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
files: ^scripts/.*\.(sh|bash)$