Compare commits

...

2 Commits

Author SHA1 Message Date
Jonas Forsberg
5b8b037905 . 2024-10-19 08:54:28 +02:00
Jonas Forsberg
088ce48d6c fixed pre-commit 2024-10-19 08:53:12 +02:00
2 changed files with 4 additions and 22 deletions

View File

@ -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

View File

@ -1,7 +1,9 @@
NEW_VERSION:=$(shell yq '.version |= (split(".") | .[-1] |= ((. tag = "!!int") + 1) | join("."))' Chart.yaml | yq '.version') 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: branch:
@echo "New chart version is: $(NEW_VERSION)" @echo "New chart version is: $(NEW_VERSION)"