From d857ffeb2eb0d5b1307523df63b305e43fe7c978 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Fri, 24 Mar 2023 10:36:34 +0300 Subject: [PATCH] [#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 --- .gitlint | 2 +- .pre-commit-config.yaml | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.gitlint b/.gitlint index 7cf8a703cf..e7218ac53a 100644 --- a/.gitlint +++ b/.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(.*) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b79cc1e7a6..169b7bf1cc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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