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 name: build
on: on:
- push - push
- pull_request - pull_request
jobs: jobs:
build: build:
container: container:

View File

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

View File

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

View File

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