Skip to content

Commit

Permalink
feat: only test short tests in pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
lvlcn-t committed May 27, 2024
1 parent 9f1f2fb commit 18927b3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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]
Expand All @@ -44,4 +43,3 @@ repos:
rev: v8.18.2
hooks:
- id: gitleaks
stages: [pre-commit]

0 comments on commit 18927b3

Please sign in to comment.