[#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
|
contrib=CC1
|
||||||
|
|
||||||
[title-match-regex]
|
[title-match-regex]
|
||||||
regex=^\[\#[0-9X]+\]\s
|
regex=^\[\#[0-9Xx]+\]\s
|
||||||
|
|
||||||
[ignore-by-title]
|
[ignore-by-title]
|
||||||
regex=^Release(.*)
|
regex=^Release(.*)
|
||||||
|
|
|
@ -34,3 +34,12 @@ repos:
|
||||||
rev: v1.51.2
|
rev: v1.51.2
|
||||||
hooks:
|
hooks:
|
||||||
- id: golangci-lint
|
- 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