# ABOUTME: Pre-commit hooks configuration for prek
# ABOUTME: Runs formatting, linting, and tests before each commit
repos:
- repo: local
hooks:
- id: cargo-fmt
name: cargo fmt
entry: cargo fmt --all -- --check
language: system
types:
pass_filenames: false
- id: cargo-clippy
name: cargo clippy
entry: cargo clippy --all-targets -- -D warnings
language: system
types:
pass_filenames: false
- id: cargo-test
name: cargo test
entry: cargo test --all-targets
language: system
types:
pass_filenames: false