From 35f111bf0d7a957251a709b875e77637cf1a3462 Mon Sep 17 00:00:00 2001 From: Camilo Date: Tue, 7 Nov 2023 13:11:48 -0800 Subject: [PATCH 1/2] feat: Added precommit support --- .pre-commit-config.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..3af6ce97 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,14 @@ +# See https://pre-commit.com for more information +# See https://pre-commit.com/hooks.html for more hooks +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v3.2.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-yaml + - id: check-added-large-files + - repo: https://github.com/golangci/golangci-lint + rev: v1.55.2 + hooks: + - id: golangci-lint From f35aa7ffa2f434041cf862db820a897706f43e2e Mon Sep 17 00:00:00 2001 From: Camilo Date: Tue, 7 Nov 2023 13:21:32 -0800 Subject: [PATCH 2/2] fix: check-yaml is not desired --- .pre-commit-config.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3af6ce97..da44a691 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,6 @@ repos: hooks: - id: trailing-whitespace - id: end-of-file-fixer - - id: check-yaml - id: check-added-large-files - repo: https://github.com/golangci/golangci-lint rev: v1.55.2