[#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>
pull/171/head
Alexey Vanin 2023-03-24 10:36:34 +03:00
parent 34329d67ff
commit d857ffeb2e
2 changed files with 10 additions and 1 deletions

View File

@ -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(.*)

View File

@ -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