Skip to content

Commit b54752a

Browse files
committed
Add yamlfmt to git hooks for git hooks config
# Conflicts: # .pre-commit-config.yaml
1 parent 3cee112 commit b54752a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.pre-commit-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,18 @@ repos:
6565
- id: zizmor
6666
args: ["--no-progress", "--persona=auditor"]
6767

68+
# TODO:
69+
# Consider using with yamllint
70+
# https://github.com/jumanjihouse/pre-commit-hook-yamlfmt?tab=readme-ov-file#combine-with-yamllint
71+
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
72+
rev: 0.2.3
73+
hooks:
74+
- id: yamlfmt
75+
# TODO: Consider applying to all YAML files
76+
files: .pre-commit-config.yaml
77+
# Matching config for `prek sample-config` output
78+
args: [--mapping, '2', --sequence, '4', --offset, '2']
79+
6880
- repo: https://github.com/codespell-project/codespell
6981
rev: v2.4.1
7082
hooks:

0 commit comments

Comments
 (0)