-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
94 lines (80 loc) · 2.45 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
---
ci: # https://pre-commit.ci
autofix_prs: true
autoupdate_schedule: monthly
skip: []
submodules: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-xml
- id: check-yaml
- id: detect-private-key
- id: double-quote-string-fixer
- id: mixed-line-ending # Replaces or checks mixed line ending.
- id: trailing-whitespace
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
stages: [pre-commit]
- repo: https://github.com/lycheeverse/lychee.git
rev: nightly
hooks:
- id: lychee
# Optionally include additional CLI arguments
# args: ["--no-progress", "--exclude", "file://"]
# YAML
- repo: https://github.com/adrienverge/yamllint
rev: v1.37.0
hooks:
- id: yamllint
args: [-c=.yamllint.yml]
- repo: https://github.com/proinsias/yaml-update-last-modified-date
rev: v1.1.1
hooks:
- id: yaml-update-last-modified-date
# Mixed
- repo: https://github.com/kraymer/cesar
rev: v1.0.0
hooks:
- id: cesar
- repo: https://github.com/sirosen/texthooks
rev: 0.6.8
hooks:
- id: fix-smartquotes
- id: fix-ligatures
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: git-check # Configure in .gitattributes
- id: shellcheck
args: [--external-sources, --format=gcc, --shell=bash]
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: remove-crlf
- id: remove-tabs
exclude: .git/COMMIT_EDITMSG
- repo: https://github.com/sirosen/check-jsonschema
rev: 0.32.1
hooks:
- id: check-github-actions
- id: check-github-workflows
- id: check-readthedocs
- repo: https://github.com/zricethezav/gitleaks
rev: v8.24.2
hooks:
- id: gitleaks
- repo: https://github.com/rhysd/actionlint
rev: v1.7.7
hooks:
- id: actionlint