-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.pre-commit-config.yaml
49 lines (44 loc) · 1.17 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
# Install the hooks in this file:
# pre-commit install --hook-type pre-commit --hook-type commit-msg
#
# (optional) test hooks for staged files:
# pre-commit run --verbose
#
# (optional) test hooks for all files:
# pre-commit run --all-files --verbose
default_stages: [pre-commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: check-added-large-files
- id: check-case-conflict
- id: mixed-line-ending
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-json
files: ^(?!etc\/continue\/config\.json$).*
- id: check-toml
- id: check-yaml
- id: check-symlinks
- id: destroyed-symlinks
- id: check-executables-have-shebangs
- id: pretty-format-json
files: ^vscode/.*\.json$
args:
- --autofix
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: shellcheck
- id: shfmt
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.30.0
hooks:
- id: commitizen
stages: [commit-msg]