chore(pre-commit): use google/yamlfmt
Some checks failed
submodules sync / sync (push) Successful in 35s
build / build (push) Failing after 58s
build / trigger-build-image (push) Has been skipped

This commit is contained in:
张泊明518370910136 2024-10-19 06:57:36 -04:00
parent 441410ae25
commit defd6072e1
GPG Key ID: D47306D7062CDA9D
4 changed files with 145 additions and 151 deletions

View File

@ -1,9 +1,7 @@
---
name: build
on:
- push
- pull_request
jobs:
build:
container:

View File

@ -1,10 +1,8 @@
---
name: submodules sync
on:
push:
branches:
- master
jobs:
sync:
container:

View File

@ -1,4 +1,3 @@
---
linters:
enable:
- gosec

View File

@ -1,4 +1,3 @@
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
@ -10,8 +9,8 @@ repos:
rev: 0.2.2
hooks:
- id: checkmake
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 0.2.3
- repo: https://github.com/google/yamlfmt
rev: v0.13.0
hooks:
- id: yamlfmt
- repo: https://github.com/dnephin/pre-commit-golang
@ -19,19 +18,19 @@ repos:
hooks:
- id: golangci-lint
- id: go-mod-tidy
# - repo: local
# hooks:
# - id: make-build
# name: make build
# entry: make build
# language: system
# always_run: true
# stages: [pre-commit]
# pass_filenames: false
# - id: make-test
# name: make test
# entry: make test
# language: system
# always_run: true
# stages: [pre-commit]
# pass_filenames: false
# - repo: local
# hooks:
# - id: make-build
# name: make build
# entry: make build
# language: system
# always_run: true
# stages: [pre-commit]
# pass_filenames: false
# - id: make-test
# name: make test
# entry: make test
# language: system
# always_run: true
# stages: [pre-commit]
# pass_filenames: false