default_install_hook_types: [pre-commit]
ci:
autofix_commit_msg: "chore: auto fix by pre-commit hooks"
autofix_prs: true
autoupdate_branch: master
autoupdate_schedule: monthly
autoupdate_commit_msg: "chore: auto update by pre-commit hooks"
repos:
- repo: local
hooks:
- id: cargo-fmt
name: cargo fmt
entry: cargo fmt --
language: system
types: [rust]
pass_filenames: false
- id: cargo-clippy
name: cargo clippy
language: system
types: [rust]
pass_filenames: false
entry: cargo clippy --all-targets --all-features -- -D warnings
- repo: https://github.com/crate-ci/typos
rev: v1.40.0
hooks:
- id: typos