From 567c55c0194f8d160ea2d341544f397d4058e163 Mon Sep 17 00:00:00 2001 From: Tyler Yep Date: Sun, 30 Apr 2023 16:04:24 -0700 Subject: [PATCH] Update .pre-commit-hooks.yaml pre-commit hooks should not run on the current directory - they should only run on changed files. --- .pre-commit-hooks.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 8783e3a..8c1f8a7 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -1,7 +1,6 @@ - id: golines name: golines description: A golang formatter that fixes long lines. - entry: golines . -w + entry: golines -w types: [go] language: golang - pass_filenames: false \ No newline at end of file