forked from thoughtworks/maeve-csms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
35 lines (35 loc) · 1.03 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
repos:
- repo: https://github.com/thoughtworks/talisman
rev: 'v1.30.2'
hooks:
- id: talisman-commit
entry: cmd --githook pre-commit
- repo: local
hooks:
- id: sort-talismanrc
name: Sort .talismanrc
language: script
files: '.talismanrc'
entry: .hook/sort-talismanrc.sh
- id: check-talisman-files
name: Check files in .talismanrc
language: script
files: '.talismanrc'
entry: .hook/check-talisman-files.sh
- repo: https://github.com/compilerla/conventional-pre-commit
rev: 'v2.3.0'
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: ['feat', 'fix', 'ci', 'chore', 'test', 'docs', 'refactor', 'revert']
- repo: https://github.com/tekwizely/pre-commit-golang
rev: 'v1.0.0-rc.1'
hooks:
- id: go-mod-tidy
- id: go-vet-mod
- id: go-fmt
- id: go-staticcheck-mod
- id: go-sec-mod
args: ["-exclude-generated", "--"]
- id: go-build-mod
- id: go-test-mod