-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
.pre-commit-config.yaml
43 lines (39 loc) · 1.15 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-json
- id: check-added-large-files
- id: check-shebang-scripts-are-executable
- id: detect-private-key
- id: forbid-submodules
- id: mixed-line-ending
- repo: https://github.com/TekWizely/pre-commit-golang
rev: v1.0.0-rc.1
hooks:
- id: go-fmt
- id: go-mod-tidy
- id: go-imports
- id: golangci-lint-repo-mod
- repo: https://github.com/adrienverge/yamllint
rev: v1.35.1
hooks:
- id: yamllint
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.21.3
hooks:
- id: commitizen
additional_dependencies:
- "cz-conventional-gitmoji"
# - id: commitizen-branch
# additional_dependencies:
# - "cz-conventional-gitmoji"
# stages: [push]
- repo: https://github.com/ljnsn/cz-conventional-gitmoji
rev: v0.2.4
hooks:
- id: conventional-gitmoji