From e83de4834e65114bce01493403f56c015f860072 Mon Sep 17 00:00:00 2001 From: Jan-Eric Nitschke <47750513+JanEricNitschke@users.noreply.github.com> Date: Wed, 26 Jul 2023 07:08:36 +0200 Subject: [PATCH] Added golangci-lint to pre-commit config --- .pre-commit-config.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8ab5205ff..6c88575b1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -42,6 +42,11 @@ repos: hooks: - id: typos args: [] + - repo: https://github.com/golangci/golangci-lint + rev: v1.53.3 + hooks: + - id: golangci-lint + entry: bash -c 'cd awpy/parser && golangci-lint run --new-from-rev HEAD --fix' # - repo: 'https://github.com/RobertCraigie/pyright-python' # rev: v1.1.316 # hooks: