From 5b1050ec8964b0d0932a2433cec0684afe46290f Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Fri, 28 Jun 2024 10:20:52 -0600 Subject: [PATCH] pre-commit: add local imports flag Signed-off-by: Sumner Evans --- .pre-commit-config.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 07aa2bd..2d16b5a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,10 @@ repos: hooks: - id: go-imports exclude: "pb\\.go$" - args: ["-w"] + args: + - "-local" + - "go.mau.fi/mautrix-meta" + - "-w" - id: go-vet-mod #- id: go-staticcheck-repo-mod # TODO: reenable this and fix all the problems