Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,22 @@ repos:

# Expand YAML anchors in files used by github workflows, because github can't
# do this itself. This lets us use anchors, which avoids code duplication.
- repo: local
hooks:
- id: expand-yaml-anchors
name: Expand YAML anchors
language: golang
additional_dependencies: [github.com/mikefarah/yq/v4@latest]
entry: >
bash -c '
OUT=".github/workflows/integration-tests.yml"
IN="$OUT.in"
echo "# AUTOGENERATED by pre-commit, modify the .in file instead." > "$OUT" &&
echo >> "$OUT"
yq "explode(.)" "$IN" >> "$OUT"
'
files: ^.github/workflows/integration-tests.yml.*
pass_filenames: false
# - repo: local
# hooks:
# - id: expand-yaml-anchors
# name: Expand YAML anchors
# language: golang
# additional_dependencies: [github.com/mikefarah/yq/v4@latest]
# entry: >
# bash -c '
# OUT=".github/workflows/integration-tests.yml"
# IN="$OUT.in"
# echo "# AUTOGENERATED by pre-commit, modify the .in file instead." > "$OUT" &&
# echo >> "$OUT"
# yq "explode(.)" "$IN" >> "$OUT"
# '
# files: ^.github/workflows/integration-tests.yml.*
# pass_filenames: false

- repo: https://github.com/PyCQA/bandit
rev: '1.7.9'
Expand Down