Add yamlfmt precommit hook (#2584)

Co-authored-by: Shuchang Zheng <wintonzheng0325@gmail.com>
This commit is contained in:
Asher Foa
2025-06-05 15:34:20 -04:00
committed by GitHub
parent 4f0eecc181
commit 721ed50116
15 changed files with 219 additions and 1372 deletions

View File

@@ -36,7 +36,6 @@ repos:
^skyvern/client/.*|
^skyvern/__init__.py
)
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
@@ -44,7 +43,6 @@ repos:
- id: python-check-mock-methods
- id: python-no-log-warn
- id: python-use-type-annotations
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.14.1
hooks:
@@ -65,7 +63,6 @@ repos:
^alembic.*|
^skyvern/client/.*
)
- repo: https://github.com/PyCQA/autoflake
rev: v2.3.1
hooks:
@@ -73,18 +70,18 @@ repos:
name: autoflake
entry: autoflake --in-place --remove-all-unused-imports --recursive --ignore-init-module-imports
language: python
types: [ python ]
types: [python]
exclude: |
(?x)(
^skyvern/client/.*
)
# Mono repo has bronken this TODO: fix
# - id: pytest-check
# name: pytest-check
# entry: pytest
# language: system
# pass_filenames: false
# always_run: true
# Mono repo has bronken this TODO: fix
# - id: pytest-check
# name: pytest-check
# entry: pytest
# language: system
# pass_filenames: false
# always_run: true
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v4.0.0-alpha.8" # Use the sha or tag you want to point at
hooks:
@@ -96,9 +93,12 @@ repos:
name: Alembic Check
entry: ./run_alembic_check.sh
language: script
stages: [ manual ]
stages: [manual]
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.10.0
hooks:
- id: shellcheck
- repo: https://github.com/google/yamlfmt
rev: v0.17.0
hooks:
- id: yamlfmt