-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
46 lines (44 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
44
45
46
default_install_hook_types: ["pre-commit", "commit-msg", "post-checkout"]
default_stages: ["pre-commit", "pre-push"]
fail_fast: false
repos:
- repo: local
hooks:
- id: update-precommit
name: update-precommit
entry: bash -c "pre-commit autoupdate"
language: system
stages:
- "post-checkout"
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
alias: "whitespace"
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
# - id: no-commit-to-branch
# args:
# - "-b"
# - "main"
# # - "staging"
# - "-b"
# - repo: https://github.com/tekwizely/pre-commit-golang
# rev: v1.0.0-rc.1
# hooks:
# - id: go-test-mod
#
# - repo: https://github.com/dnephin/pre-commit-golang
# rev: v0.5.1
# hooks:
# - id: golangci-lint
# args:
# - "--fix"
- repo: https://github.com/commitizen-tools/commitizen
rev: 3.12.0
hooks:
- id: commitizen
stages: ["commit-msg"]
- id: commitizen-branch
stages: [push]