fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-yaml
- id: check-toml
- id: check-merge-conflict
- id: detect-private-key
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
- repo: https://github.com/crate-ci/typos
rev: v1.26.8
hooks:
- id: typos
- repo: local
hooks:
- id: cargo-fmt
name: cargo fmt
description: Auto-format Rust code
entry: cargo fmt --all
language: system
types: [rust]
pass_filenames: false
- id: cargo-clippy
name: cargo clippy
description: Run clippy linter
entry: cargo clippy --all-targets --all-features -- -D warnings
language: system
types: [rust]
pass_filenames: false
- id: cargo-check
name: cargo check
entry: cargo check --workspace
language: system
types: [rust]
pass_filenames: false
- id: cargo-nextest
name: cargo nextest
entry: cargo nextest run --workspace
language: system
types: [rust]
pass_filenames: false