Repository navigation
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
58 lines (58 loc) · 1.77 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
58 lines (58 loc) · 1.77 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
46
47
48
49
50
51
52
53
54
55
56
57
58
---
# Generated clients are committed as raw openapi-generator output by the
# ol-infrastructure pipeline, which never runs these hooks; formatting them
# here would rewrite every client, only for the next regeneration to undo it.
exclude: ^src/typescript/[^/]+/src/
repos:
- 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
- id: check-added-large-files
- id: check-merge-conflict
- id: check-toml
# pre-commit/mirrors-prettier is archived; run Prettier from npm instead.
- repo: local
hooks:
- id: prettier
name: prettier
entry: prettier --write --ignore-unknown
language: node
additional_dependencies: ["prettier@3.10.1"]
types_or: [json, yaml, markdown]
args:
- --no-config
- --no-semi
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.7.0-4
hooks:
- id: shfmt
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.38.0
hooks:
- id: yamllint
args: [--format, parsable, -d, relaxed]
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
args:
- --baseline
- .secrets.baseline
- --exclude-files
- .yarn/
- --exclude-files
- yarn.lock
additional_dependencies: ["gibberish-detector"]
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.6
hooks:
- id: shellcheck
args: ["--severity=warning"]
- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: v1.29.0
hooks:
- id: zizmor
args: [--no-progress, --min-severity=medium, --min-confidence=medium]