-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
58 lines (53 loc) · 1.54 KB
/
.pre-commit-config.yaml
File metadata and controls
58 lines (53 loc) · 1.54 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
---
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_install_hook_types: [commit-msg, pre-commit]
default_stages: [pre-commit, manual]
fail_fast: true
repos:
- repo: "https://github.com/commitizen-tools/commitizen"
rev: v4.8.3
hooks:
- id: commitizen
- id: commitizen-branch
stages:
- post-commit
- pre-push
- repo: "https://github.com/pre-commit/pre-commit-hooks"
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-json
exclude: ".tmpl$|^chezmoi/.chezmoitemplates/"
- id: check-merge-conflict
- id: check-symlinks
- id: check-xml
exclude: ".tmpl$|^chezmoi/.chezmoitemplates/"
- id: check-yaml
exclude: ".tmpl$|^chezmoi/.chezmoitemplates/"
- id: destroyed-symlinks
- id: detect-private-key
- id: end-of-file-fixer
- id: check-byte-order-marker
- id: mixed-line-ending
- id: trailing-whitespace
- repo: "https://github.com/gitleaks/gitleaks"
rev: v8.27.2
hooks:
- id: gitleaks
- repo: "https://github.com/adhtruong/mirrors-typos"
rev: v1.34.0
hooks:
- id: typos
args: ["--force-exclude"]
stages: [commit-msg, pre-commit]
- repo: local
hooks:
- id: shellcheck
name: shellcheck
entry: shellcheck
language: system
types: [shell]
exclude: "chezmoi/dot_config/zsh/dot_zshrc|.*\\.zsh$"