From c5e71b53a300d06822f1e2bdcad4c308c4fdb1cc Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Fri, 3 May 2024 09:46:21 +0200 Subject: [PATCH] add pre-commit config add pre-commit --- .pre-commit-config.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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 000000000..046bd0f37 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,29 @@ +# See https://pre-commit.com for more information +# See https://pre-commit.com/hooks.html for more hooks +default_install_hook_types: ["pre-push"] +exclude: "(^vendor|.*golden$)" +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.6.0 + hooks: + - id: check-added-large-files + - id: check-toml + - id: check-shebang-scripts-are-executable + - id: check-json + - id: check-vcs-permalinks + - repo: local + hooks: + - id: lint-go + name: "Lint GO" + entry: make + args: ["lint-go"] + language: system + types: [go] + pass_filenames: false + - id: test + name: "Unit testing" + entry: make + args: ["e2e-docker"] + language: system + types: [go] + pass_filenames: false