From 0401ee8c24a2f0fdbe6ea8cd80749f35c01c9efb Mon Sep 17 00:00:00 2001 From: Michal Kaptur Date: Tue, 4 Jun 2024 10:54:07 +0200 Subject: [PATCH 1/2] fixed pre-commit config syntax --- .pre-commit-config.yaml | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e47d98b..8cb42d5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,16 +1,17 @@ -- repo: https://github.com/dnephin/pre-commit-golang - rev: master - hooks: - - id: go-fmt - - id: go-vet - - id: go-lint - - id: go-imports - - id: go-cyclo - args: [-over=15] - - id: validate-toml - - id: no-go-testing - - id: golangci-lint - - id: go-critic - - id: go-unit-tests - - id: go-build - - id: go-mod-tidy \ No newline at end of file +repos: + - repo: https://github.com/dnephin/pre-commit-golang + rev: master + hooks: + - id: go-fmt + - id: go-vet + - id: go-lint + - id: go-imports + - id: go-cyclo + args: [-over=15] + - id: validate-toml + - id: no-go-testing + - id: golangci-lint + - id: go-critic + - id: go-unit-tests + - id: go-build + - id: go-mod-tidy From b6971ec0a42c16a46559e590e4ffe29dd8d17db7 Mon Sep 17 00:00:00 2001 From: Michal Kaptur Date: Tue, 4 Jun 2024 10:54:49 +0200 Subject: [PATCH 2/2] fix mutable reference warning --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8cb42d5..dc3e32d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/dnephin/pre-commit-golang - rev: master + rev: v0.5.1 hooks: - id: go-fmt - id: go-vet