forked from TrueCloudLab/frostfs-node
[#171] Syncrhonize pre-commit settings across FrostFS repos
This change allows to use `[#xx]` placeholders for issue number. This change adds go unit test run if .go files were changed. Signed-off-by: Alex Vanin <a.vanin@yadro.com>
This commit is contained in:
parent
34329d67ff
commit
d857ffeb2e
2 changed files with 10 additions and 1 deletions
2
.gitlint
2
.gitlint
|
@ -4,7 +4,7 @@ regex-style-search=True
|
|||
contrib=CC1
|
||||
|
||||
[title-match-regex]
|
||||
regex=^\[\#[0-9X]+\]\s
|
||||
regex=^\[\#[0-9Xx]+\]\s
|
||||
|
||||
[ignore-by-title]
|
||||
regex=^Release(.*)
|
||||
|
|
|
@ -34,3 +34,12 @@ repos:
|
|||
rev: v1.51.2
|
||||
hooks:
|
||||
- id: golangci-lint
|
||||
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: go-unit-tests
|
||||
name: go unit tests
|
||||
entry: make test
|
||||
pass_filenames: false
|
||||
types: [go]
|
||||
language: system
|
||||
|
|
Loading…
Reference in a new issue