From 78e2f210cf85b861391dda2c9c4a36164e2f30c2 Mon Sep 17 00:00:00 2001 From: Joakim Olsson Date: Fri, 19 May 2023 11:22:51 +0200 Subject: [PATCH] chore: update pre-commit and fix golangci-lint --- .golangci.yml | 2 ++ .pre-commit-config.yaml | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .golangci.yml diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..9692e46 --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,2 @@ +run: + allow-parallel-runners: true diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 950b949..a4242c4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,7 +22,7 @@ repos: - --project - unboundsoftware/schemas - repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook - rev: v9.3.0 + rev: v9.5.0 hooks: - id: commitlint stages: [ commit-msg ] @@ -39,6 +39,9 @@ repos: rev: v0.0.1 hooks: - id: go-test - - id: golangci-lint - id: gofumpt +- repo: https://github.com/golangci/golangci-lint + rev: v1.52.2 + hooks: + - id: golangci-lint exclude: '^graph/generated/.*$|^graph/model/models_gen.go|^tools/.*$$'