Skip to content

Commit 4545714

Browse files
authored
Temporary disable pre-commit hook expand-yaml-anchors (#2494)
Until we find a permanent fix for #2492.
1 parent 106c399 commit 4545714

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

.pre-commit-config.yaml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -46,22 +46,22 @@ repos:
4646

4747
# Expand YAML anchors in files used by github workflows, because github can't
4848
# do this itself. This lets us use anchors, which avoids code duplication.
49-
- repo: local
50-
hooks:
51-
- id: expand-yaml-anchors
52-
name: Expand YAML anchors
53-
language: golang
54-
additional_dependencies: [github.com/mikefarah/yq/v4@latest]
55-
entry: >
56-
bash -c '
57-
OUT=".github/workflows/integration-tests.yml"
58-
IN="$OUT.in"
59-
echo "# AUTOGENERATED by pre-commit, modify the .in file instead." > "$OUT" &&
60-
echo >> "$OUT"
61-
yq "explode(.)" "$IN" >> "$OUT"
62-
'
63-
files: ^.github/workflows/integration-tests.yml.*
64-
pass_filenames: false
49+
# - repo: local
50+
# hooks:
51+
# - id: expand-yaml-anchors
52+
# name: Expand YAML anchors
53+
# language: golang
54+
# additional_dependencies: [github.com/mikefarah/yq/v4@latest]
55+
# entry: >
56+
# bash -c '
57+
# OUT=".github/workflows/integration-tests.yml"
58+
# IN="$OUT.in"
59+
# echo "# AUTOGENERATED by pre-commit, modify the .in file instead." > "$OUT" &&
60+
# echo >> "$OUT"
61+
# yq "explode(.)" "$IN" >> "$OUT"
62+
# '
63+
# files: ^.github/workflows/integration-tests.yml.*
64+
# pass_filenames: false
6565

6666
- repo: https://github.com/PyCQA/bandit
6767
rev: '1.7.9'

0 commit comments

Comments
 (0)