From 026910a7a2d77c42abc32dbf3a1601089016195a Mon Sep 17 00:00:00 2001 From: Vahn Gomes Date: Tue, 6 Feb 2024 21:31:23 -0500 Subject: [PATCH] Update pre-commit hooks and add golangci-lint --- .pre-commit-config.yaml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5fad74b..31c21c5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,15 +1,23 @@ # cSpell:ignore checkmake hadolint autofix autoupdate repos: + - repo: meta + hooks: + - id: check-hooks-apply + - id: check-useless-excludes - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: end-of-file-fixer - id: trailing-whitespace - - id: check-merge-conflict - - repo: https://git.schmidl.dev/schtobia/woodpecker-lint - rev: 1.0.0 + - repo: https://github.com/golangci/golangci-lint + rev: v1.55.2 hooks: - - id: woodpecker-lint + - id: golangci-lint + # FIXME: Executable `docker` not found + # - repo: https://git.schmidl.dev/schtobia/woodpecker-lint + # rev: 1.0.0 + # hooks: + # - id: woodpecker-lint - repo: https://github.com/mrtazz/checkmake rev: 0.2.2 hooks: