-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
70 lines (70 loc) · 2.16 KB
/
.pre-commit-config.yaml
File metadata and controls
70 lines (70 loc) · 2.16 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
# See https://prek.j178.dev for more information
# Migrated from pre-commit to prek: https://prek.j178.dev/benchmark/
#
# Install prek itself:
# $ cargo install prek
# OR
# $ brew install prek
#
# Update all prek hooks to latest version:
# $ prek auto-update
#
# Install all default prek hooks locally:
# $ prek install
#
# Apply a given prek hook to all files:
# $ prek run --all-files <id>
#
# Apply all prek hooks to all files:
# $ prek run --all-files
ci:
autoupdate_schedule: monthly
repos:
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0
hooks:
# keep-sorted start
- id: check-executables-have-shebangs
- id: check-yaml
- id: detect-private-key
- id: trailing-whitespace
# keep-sorted end
- repo: https://github.com/rhysd/actionlint/
rev: 914e7df21a07ef503a81201c76d2b11c789d3fca # frozen: v1.7.12
hooks:
- id: actionlint
- repo: https://github.com/codespell-project/codespell
rev: 2ccb47ff45ad361a21071a7eedda4c37e6ae8c5a # frozen: v2.4.2
hooks:
- id: codespell
- repo: https://github.com/golangci/misspell
rev: b565578a5ec9b815331bdae8f588021f7696ec6f # frozen: v0.8.0
hooks:
- id: misspell
- repo: https://github.com/google/keep-sorted
rev: ac58172d1655aa47a6f806e56ff0f269d6dbe637 # frozen: v0.8.0
hooks:
- id: keep-sorted
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: 745eface02aef23e168a8afb6b5737818efbea95 # frozen: v0.11.0.1
hooks:
- id: shellcheck
- repo: https://github.com/woodruffw/zizmor-pre-commit
rev: 9257c6050c0261b8c57e712f632dc4a8010109a9 # frozen: v1.25.2
hooks:
- id: zizmor
- repo: https://github.com/zimbatm/mdsh
rev: 4b8fb1e7b52a65d6ea875ede3272ac3571f5d015 # frozen: v0.9.2
hooks:
- id: mdsh
files: ^README.md$
- repo: https://github.com/thiagowfx/pre-commit-hooks/
rev: 528e165cff8a11bc4f9f49a9b25f3249e09e4237 # frozen: v0.0.22
hooks:
- id: check-bash-shebang
types:
- shell