Skip to content

Commit fd7c04b

Browse files
committed
switch to yamlfmt for yaml formatting
1 parent 350bcc6 commit fd7c04b

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

.pre-commit-config.yaml

+4-9
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ repos:
1313
- id: end-of-file-fixer
1414
- id: mixed-line-ending
1515
- id: trailing-whitespace
16+
- repo: https://github.com/google/yamlfmt
17+
rev: v0.10.0
18+
hooks:
19+
- id: yamlfmt
1620
- repo: https://github.com/astral-sh/ruff-pre-commit
1721
# Ruff version.
1822
rev: v0.4.8
@@ -32,12 +36,3 @@ repos:
3236
language: node
3337
additional_dependencies:
3438
- "@taplo/cli"
35-
- id: format-yaml
36-
name: format yaml files
37-
files: \.ya?ml$
38-
exclude: conda-lock.yml
39-
entry: prettier
40-
args: [-w]
41-
language: node
42-
additional_dependencies:
43-
- prettier

.yamlfmt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
formatter:
2+
type: basic
3+
retain_line_breaks_single: true

0 commit comments

Comments
 (0)