-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
73 lines (65 loc) · 1.46 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
default_language_version:
python: python3.11
default_stages:
- commit
exclude: |
(?x)^(
.circleci/.*|
.platform/.*|
__pypackages__/.*|
.*/dbt_packages/.*|
.*/target/.*
)$
repos:
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.10.0
hooks:
- id: black
- id: black
name: black-lint
args:
- "--check"
- "--diff"
- "--color"
stages: [manual]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.8.3
hooks:
- id: ruff
args:
- "--output-format"
- "full"
- "--fix"
- id: ruff
name: ruff-only-check
args:
- "--output-format"
- "full"
- "--no-fix"
stages: [manual]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: end-of-file-fixer
stages:
- commit
- id: trailing-whitespace
stages:
- commit
- repo: https://github.com/pdm-project/pdm
rev: 2.22.0
hooks:
- id: pdm-lock-check
- repo: https://github.com/adrienverge/yamllint
rev: v1.35.1
hooks:
- id: yamllint
name: yaml-lint
stages:
- commit
- manual
- repo: https://github.com/gitleaks/gitleaks
rev: v8.21.2
hooks:
- id: gitleaks-docker
entry: -u root:root zricethezav/gitleaks protect --verbose --redact --staged