-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
52 lines (50 loc) · 1.47 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
exclude: '^$'
fail_fast: false
default_install_hook_types: [pre-commit, pre-push, commit-msg]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
stages: [pre-commit]
- id: check-json
stages: [pre-commit]
- id: check-toml
stages: [pre-commit]
- id: check-yaml
args: [--allow-multiple-documents]
stages: [pre-commit]
- id: check-xml
stages: [pre-commit]
- id: check-shebang-scripts-are-executable
stages: [pre-commit]
- id: check-executables-have-shebangs
stages: [pre-commit]
- id: check-merge-conflict
stages: [pre-commit]
- id: check-case-conflict
stages: [pre-commit]
- id: check-symlinks
stages: [pre-commit]
- id: destroyed-symlinks
stages: [pre-commit]
- id: detect-private-key
stages: [pre-commit]
- id: mixed-line-ending
exclude: "(^.idea/|.vscode/)"
stages: [pre-commit]
- id: trailing-whitespace
exclude: "(^.idea/|.vscode/)"
stages: [pre-commit]
- id: end-of-file-fixer
exclude: "(^.idea/|.vscode/)"
stages: [pre-commit]
- id: no-commit-to-branch
args: [--branch, main]
stages: [pre-commit]
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.1.0
hooks:
- id: commitizen
- id: commitizen-branch
stages: [pre-push]