Releases: craftech-io/pre-commit
v0.5.0
🚀 Release Notes — v0.5.0
Overview
Hooks have been added for Helm repositories, such as the Kube-app. The README.md has also been modified to provide more detail on the new hooks, as well as improved formatting and styling.
What's Changed
-
Feat/helm pre commit hooks by @LautaroTorchia in #22
-
helm-lint: Validates Helm charts using the native helm lint tool, detecting syntax errors, missing values, and configuration issues. Automatically searches for Chart.yaml files and reports errors with colored output in the terminal.
-
helm-template-check: Renders templates using helm template to verify that they generate valid Kubernetes manifests. Validates template syntax before deployment, displaying file-specific errors.
-
yamllint: Validates YAML file syntax using yamllint, parses structure and formatting, and reports errors in parsable format with exact rows and columns.
Upgrade Guide
Update consumer repositories to use the new tag and hooks:
# .pre-commit-config.yaml (consumer repo)
repos:
- repo: git@github.com:craftech-io/pre-commit.git
rev: v0.5.0
hooks:
- id: helm-lint
- id: helm-template
- id: yamllint
# Optional: always show detailed output even when passing
verbose: trueNew Contributors
- @LautaroTorchia made their first contribution in #22
Full Changelog: v0.4.0...v0.5.0
v0.4.0
🚀 Release Notes — v0.4.0
Overview
Deleted the Pipeline Generator unused hook and fixed a problem with the Terraform Validate hook that caused the whole hook to fail
What's Changed
- Deleted
hooks/pipeline-generator.sh - Modified
hooks/terraform-validate.shto be executable on linux by default
Upgrade Guide
Update consumer repositories to use the new tag and hooks:
# .pre-commit-config.yaml (consumer repo)
repos:
- repo: git@github.com:craftech-io/pre-commit.git
rev: v0.4.0
hooks:
- id: terraform-fmt
- id: terraform-validate
# Optional: always show detailed output even when passing
verbose: truev0.3.0
🚀 Release Notes — v0.3.0
Overview
This release introduces internal pre-commit hooks for Terraform to standardize local checks before every commit:
terraform-fmt: checks formatting (terraform fmt --check -diff).terraform-validate: runsterraform init -backend=falsefollowed byterraform validate, with clear per-directory/per-file output.
Both hooks ignore examples/ and .terraform/. Validation gracefully skips directories that require a private registry when credentials are not present (prints a warning instead of failing the commit).
What's Added
- ✅ New
terraform-validatehook (init without backend, validation, friendly output). - ✅ Improved UX for both hooks: per-file/per-directory messages, optional verbose output.
What's Changed
-
🔧
terraform-fmtnow runs in check-only mode and shows a diff on failure.Previously it may have auto-formatted files; now it fails if formatting is needed so the developer can run
terraform fmtexplicitly. -
🧹 Both hooks exclude
examples/and.terraform/by default. -
🔐 Validation no longer hard-fails when a private registry is unreachable; it shows
skipped (requires private registry auth)and continues with the rest.
Upgrade Guide
Update consumer repositories to use the new tag and hooks:
# .pre-commit-config.yaml (consumer repo)
repos:
- repo: git@github.com:craftech-io/pre-commit.git
rev: v0.3.0
hooks:
- id: terraform-fmt
- id: terraform-validate
# Optional: always show detailed output even when passing
verbose: truev0.2.2
BugFix
- Silent vault command output
v0.2.1
BugFix
- Allow vault command failure with warning.
v0.2.0
Feature
- Upgrade pipeline generator to v0.8.3
v0.1.3
Bug Fixes
- Repository URL to install Pipeline Generator