ci:
autofix_commit_msg: "chore(pre-commit.ci): auto fixes from pre-commit hooks"
autoupdate_commit_msg: "chore(pre-commit.ci): pre-commit autoupdate"
autoupdate_schedule: "monthly"
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-toml
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
args: ["--fix=lf"]
- id: trailing-whitespace
- repo: https://github.com/google/yamlfmt
rev: v0.21.0
hooks:
- id: yamlfmt
types_or: [json, yaml]
args: ["-conf", ".config/yamlfmt.yml"]
- repo: local
hooks:
- id: fmt
name: cargo fmt
files: ^.*\.(rs|toml)$
language: rust
entry: cargo fmt
pass_filenames: false
- repo: https://github.com/instrumentl/pre-commit-just
rev: v0.1
hooks:
- id: format-justfile
name: "format justfiles"