From 18927b3b05b224244ebbd4b3989fd903ba097705 Mon Sep 17 00:00:00 2001 From: lvlcn-t <75443136+lvlcn-t@users.noreply.github.com> Date: Mon, 27 May 2024 19:24:43 +0200 Subject: [PATCH] feat: only test short tests in pre-commit hook --- .pre-commit-config.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 940d023..a3b9cb6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,3 @@ -default_stages: [pre-push] ci: autofix_commit_msg: | fix(deps): [pre-commit.ci] auto fixes\n\nFor more information, see https://pre-commit.ci @@ -24,7 +23,7 @@ repos: hooks: - id: go-mod-tidy-repo - id: go-test-repo-mod - args: [-race, -count=1] + args: [-race, -count=1, -test.short] - id: go-vet-repo-mod - id: go-fumpt-repo args: [-l, -w] @@ -44,4 +43,3 @@ repos: rev: v8.18.2 hooks: - id: gitleaks - stages: [pre-commit]