Files
spark-operator/.pre-commit-config.yaml
Tariq HasanandGitHub 30d6b53c80 ci: add shfmt and shellcheck checks for shell scripts (#2993)
* ci: add shfmt and shellcheck checks for shell scripts

Signed-off-by: tariq-hasan <mmtariquehsn@gmail.com>

* fix: address PR review feedback on shell lint setup

Signed-off-by: tariq-hasan <mmtariquehsn@gmail.com>

---------

Signed-off-by: tariq-hasan <mmtariquehsn@gmail.com>
2026-06-26 00:06:13 +00:00

29 lines
818 B
YAML

repos:
- repo: https://github.com/norwoodj/helm-docs
rev: "v1.13.1"
hooks:
- id: helm-docs
args:
# Make the tool search for charts only under the `charts` directory
- --chart-search-root=charts
- --template-files=README.md.gotmpl
- --sort-values-order=file
- repo: local
hooks:
- id: shfmt
name: shfmt
description: Format shell scripts with shfmt
entry: make shell-fmt
language: system
types: [shell]
pass_filenames: false
require_serial: true
- id: shellcheck
name: shellcheck
description: Lint shell scripts with shellcheck
entry: make shell-lint
language: system
types: [shell]
pass_filenames: false
require_serial: true