From 3fbaf561f55cfcc0791d9268180e693cf0d904d4 Mon Sep 17 00:00:00 2001 From: Ralf Schmitt Date: Tue, 22 Aug 2023 12:49:33 +0200 Subject: [PATCH] Use golines-gofumpt pre-commit hook golines wraps long lines with gofumpt as a base formatter. --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7460799b..6c0d715a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -60,7 +60,7 @@ repos: - id: eslint - repo: https://github.com/shutter-network/pre-commit-go-hooks - rev: "7a66f5523b34139615a0c95f2b8a441dbc1778dc" + rev: "9f4fc1448722928abeede7bb06c96fb46039e6dd" hooks: - id: shfmt args: ["-i", "4"] @@ -83,7 +83,7 @@ repos: ^rolling-shutter/p2pmsg/.*\.pb\.go$| ^rolling-shutter/shcryptowasm/.*_wasm\.go$ ) - - id: gofumpt + - id: golines-gofumpt exclude: | (?x)( ^.*\.gen\.go$|