chore(pre-commit): use google/yamlfmt
All checks were successful
build / build (push) Successful in 1m2s

This commit is contained in:
张泊明518370910136 2024-10-19 06:58:54 -04:00
parent e17fe17fdf
commit e19657c5b0
GPG Key ID: D47306D7062CDA9D
2 changed files with 90 additions and 93 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,4 +1,3 @@
---
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0 rev: v4.4.0
@ -12,8 +11,8 @@ repos:
hooks: hooks:
- id: remove-crlf - id: remove-crlf
- id: remove-tabs - id: remove-tabs
- 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/pdm-project/pdm - repo: https://github.com/pdm-project/pdm
@ -40,7 +39,7 @@ repos:
hooks: hooks:
- id: bandit - id: bandit
args: [-c, pyproject.toml] args: [-c, pyproject.toml]
additional_dependencies: ['bandit[toml]'] additional_dependencies: ["bandit[toml]"]
- repo: https://github.com/PyCQA/isort - repo: https://github.com/PyCQA/isort
rev: 5.13.2 rev: 5.13.2
hooks: hooks: