-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
37 lines (33 loc) · 947 Bytes
/
.pre-commit-config.yaml
File metadata and controls
37 lines (33 loc) · 947 Bytes
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.10.0
hooks:
- id: shellcheck
args: ["-s", "bash", "-e", "SC1091"]
files: \.sh(\.tmpl)?$
- repo: https://github.com/JohnnyMorganz/StyLua
rev: v2.0.2
hooks:
- id: stylua
args: ["--check"]
files: \.lua$
- repo: https://github.com/gitleaks/gitleaks
rev: v8.24.0
hooks:
- id: gitleaks
- repo: local
hooks:
- id: chezmoi-template-check
name: chezmoi template validation
entry: sh -c 'for f in "$@"; do chezmoi execute-template < "$f" > /dev/null || exit 1; done' --
language: system
files: \.tmpl$
exclude: ^\.chezmoi\.yaml\.tmpl$
types: [file]