Skip to content

Commit 9a54f41

Browse files
author
jguerreiro
committed
chore(ci): add pre-commit hooks
1 parent 64946c0 commit 9a54f41

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.pre-commit-config.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
default_stages: [commit]
2+
repos:
3+
- repo: git://github.com/dnephin/pre-commit-golang
4+
rev: v0.3.5
5+
hooks:
6+
- id: go-fmt
7+
- id: go-imports
8+
- id: golangci-lint
9+
- repo: https://github.com/Woile/commitizen
10+
rev: v2.17.4
11+
hooks:
12+
- id: commitizen
13+
# don't forget to run pre-commit install --hook-type commit-msg for this hook to run
14+
stages: [commit-msg]
15+
16+
- repo: https://github.com/pre-commit/mirrors-prettier # to format JSON, YAML and markdown files among others
17+
rev: v2.2.1
18+
hooks:
19+
- id: prettier
20+
21+
- repo: https://github.com/gitguardian/gg-shield
22+
rev: v1.4.0
23+
hooks:
24+
- id: ggshield
25+
language_version: python3
26+
stages: [commit]

0 commit comments

Comments
 (0)