-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
76 lines (76 loc) · 2.11 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
76 lines (76 loc) · 2.11 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-toml
- id: check-added-large-files
args: [--maxkb=500]
- id: check-merge-conflict
- id: detect-private-key
- id: mixed-line-ending
args: [--fix=lf]
- id: check-json
- repo: https://github.com/gitleaks/gitleaks
rev: v8.30.0
hooks:
- id: gitleaks
- repo: https://github.com/rhysd/actionlint
rev: v1.7.10
hooks:
- id: actionlint
files: ^\.github/workflows/.*\.ya?ml$
- repo: local
hooks:
- id: luacheck
name: luacheck
language: system
entry: luacheck
types: [lua]
files: \.lua$
- id: selene
name: selene
language: system
entry: bash -c 'cd nvim && selene --config selene.toml .config/nvim/lua'
pass_filenames: false
types: [lua]
files: ^nvim/
- id: stylua
name: stylua
language: system
entry: stylua --check --search-parent-directories
types: [lua]
files: ^(nvim|wezterm)/
- id: shellcheck
name: shellcheck
language: system
entry: shellcheck --rcfile=nvim/.shellcheckrc
types: [shell]
files: \.sh$
exclude: ^ai/\.claude/(shell-snapshots|plugins/cache)/
- id: zsh-syntax
name: zsh syntax check
language: system
entry: zsh -n
files: ^zsh/
- id: shellspec
name: shellspec
language: system
entry: shellspec
pass_filenames: false
files: ^(zsh/|\.shellspec$)
- id: zizmor
name: zizmor
language: system
entry: zizmor --config nvim/zizmor.yaml .github/workflows
pass_filenames: false
files: ^\.github/workflows/.*\.ya?ml$
- id: markdownlint
name: markdownlint
language: system
entry: markdownlint --ignore-path nvim/.markdownlintignore
types: [markdown]
files: \.md$
exclude: ^(graphify-out/|ai/\.claude/)