From fc305205784a70b4cfc17397654f4c94e3153ce4 Mon Sep 17 00:00:00 2001 From: Shaun Jackman Date: Tue, 7 Jan 2025 23:42:23 -0800 Subject: [PATCH] feat: fix pre-commit config to use pass_filenames (#133) Using pass_filenames: true is faster than `golines -w .` because it runs golines on only the files that have changed. --- .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