From 088ce48d6c76f7d0a210b0c4dd9443e1309495c8 Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Sat, 19 Oct 2024 08:53:12 +0200 Subject: [PATCH 1/2] fixed pre-commit --- .githooks/pre-commit | 20 -------------------- Makefile | 5 +++-- 2 files changed, 3 insertions(+), 22 deletions(-) delete mode 100644 .githooks/pre-commit diff --git a/.githooks/pre-commit b/.githooks/pre-commit deleted file mode 100644 index a78365a..0000000 --- a/.githooks/pre-commit +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash -# File generated by pre-commit: https://pre-commit.com -# ID: 138fd403232d2ddd5efb44317e38bf03 - -# start templated -INSTALL_PYTHON=/usr/bin/python3 -ARGS=(hook-impl --config=.pre-commit-config.yaml --hook-type=pre-commit) -# end templated - -HERE="$(cd "$(dirname "$0")" && pwd)" -ARGS+=(--hook-dir "$HERE" -- "$@") - -if [ -x "$INSTALL_PYTHON" ]; then - exec "$INSTALL_PYTHON" -mpre_commit "${ARGS[@]}" -elif command -v pre-commit > /dev/null; then - exec pre-commit "${ARGS[@]}" -else - echo '`pre-commit` not found. Did you forget to activate your virtualenv?' 1>&2 - exit 1 -fi diff --git a/Makefile b/Makefile index 7d24252..26085eb 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,8 @@ NEW_VERSION:=$(shell yq '.version |= (split(".") | .[-1] |= ((. tag = "!!int") + 1) | join("."))' Chart.yaml | yq '.version') -init: - git config core.hooksPath .githooks +pre-commit: + pip install pre-commit + pre-commit install branch: @echo "New chart version is: $(NEW_VERSION)" -- 2.45.2 From 5b8b03790577202d8de7f6044433e23d5e14b7b3 Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Sat, 19 Oct 2024 08:54:28 +0200 Subject: [PATCH 2/2] . --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 26085eb..2dc0edf 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ NEW_VERSION:=$(shell yq '.version |= (split(".") | .[-1] |= ((. tag = "!!int") + 1) | join("."))' Chart.yaml | yq '.version') + pre-commit: pip install pre-commit pre-commit install -- 2.45.2