From dda359d1dfdee796fb70502b585948c2204fb18d Mon Sep 17 00:00:00 2001 From: Luca Comellini Date: Thu, 11 Jul 2024 12:53:23 -0700 Subject: [PATCH] Add helm-docs to pre-commit Problem: helm-docs wasn't working correctly with pre-commit when we started using it, but now it's fixed Solution: Add helm-docs to pre-commit now that it works --- .pre-commit-config.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f9187e4eda..ca5eec7303 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -67,7 +67,16 @@ repos: rev: v2.2.0 hooks: - id: doctoc - args: [--update-only, --title, '## Table of Contents'] + args: [--update-only, --title, "## Table of Contents"] + + - repo: https://github.com/norwoodj/helm-docs + rev: v1.14.2 + hooks: + - id: helm-docs-built + args: + - --chart-search-root=charts + - --template-files=_templates.gotmpl + - --template-files=README.md.gotmpl ci: skip: [golangci-lint-full, prettier, markdownlint-cli2, yamllint]