Skip to content

Commit 9330782

Browse files
committed
style: set up yamlfmt
1 parent b9babb3 commit 9330782

3 files changed

Lines changed: 13 additions & 8 deletions

File tree

.github/workflows/golangci-lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ on:
55
- main
66

77
env:
8-
GO_VERSION: v1.26
9-
GOLANGCI_LINT_VERSION: v2.11.3
8+
GO_VERSION: v1.26
9+
GOLANGCI_LINT_VERSION: v2.11.3
1010

1111
permissions:
1212
contents: read
@@ -23,4 +23,4 @@ jobs:
2323
- name: golangci-lint
2424
uses: golangci/golangci-lint-action@v9
2525
with:
26-
version: ${{ env.GOLANGCI_LINT_VERSION }}
26+
version: ${{ env.GOLANGCI_LINT_VERSION }}

.markdownlint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
MD013:
2-
line_length: 120
2+
line_length: 120

.pre-commit-config.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
repos:
2-
- repo: https://github.com/igorshubovych/markdownlint-cli
3-
rev: v0.48.0
4-
hooks:
5-
- id: markdownlint-fix-docker
2+
- repo: https://github.com/igorshubovych/markdownlint-cli
3+
rev: v0.48.0
4+
hooks:
5+
- id: markdownlint-fix-docker
6+
- repo: https://github.com/google/yamlfmt
7+
rev: v0.21.0
8+
hooks:
9+
- id: yamlfmt
10+
args: ['-formatter', 'retain_line_breaks=true,force_quote_style=single']

0 commit comments

Comments
 (0)