-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
62 lines (55 loc) · 1.5 KB
/
.pre-commit-config.yaml
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
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
# syntax check
- id: check-json
- id: check-xml
- id: check-yaml
- id: check-toml
# whitespaces
- id: trailing-whitespace
- id: mixed-line-ending
- id: end-of-file-fixer
exclude: ".config/nvim/lazy-lock.json"
# scripts/exe
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: destroyed-symlinks
# credentials leak
- id: detect-private-key
- repo: https://github.com/adrienverge/yamllint
rev: v1.35.1
hooks:
- id: yamllint
args: [-c, .config/yamllint/config]
- repo: https://github.com/JohnnyMorganz/StyLua
rev: v0.20.0
hooks:
- id: stylua-github
args: [--config-path, .config/nvim/stylua.toml]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
exclude: ".config/nvim/lazy-lock.json"
- repo: https://github.com/crate-ci/typos
rev: v1.26.0
hooks:
- id: typos
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
exclude: ".config/nvim/lazy-lock.json"
- repo: https://github.com/zricethezav/gitleaks
rev: v8.20.1
hooks:
- id: gitleaks
- repo: https://github.com/sirwart/ripsecrets
rev: v0.1.8
hooks:
- id: ripsecrets