Skip to content

Commit e5f9481

Browse files
author
Ware, Joseph (DLSLtd,RAL,LSCI)
committed
Configure pre-commit to ignore Helm templates
1 parent c1dac1d commit e5f9481

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ repos:
55
- id: check-added-large-files
66
- id: check-yaml
77
# These yaml files output valid yaml only after templating
8-
exclude: ^helm/{{ repo_name }}/templates/
8+
ignore:
9+
- "template/{% if helm %}helm{% endif %}/{{ chart_name }}/templates/"
10+
- "template/{% if helm %}helm{% endif %}/{{ chart_name }}/Chart.yaml"
11+
- "{% if helm %}helm{% endif %}/{{ chart_name }}/templates/"
12+
- "{% if helm %}helm{% endif %}/{{ chart_name }}/Chart.yaml"
913
- id: check-merge-conflict
1014
- id: end-of-file-fixer
1115

0 commit comments

Comments
 (0)