repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-added-large-files
- repo: local
hooks:
- id: cargo-fmt
name: cargo fmt
entry: just fmt-check
language: system
pass_filenames: false
files: '^(src/|tests/|Cargo\.(toml|lock)$|deny\.toml$|rust-toolchain\.toml$|dist-workspace\.toml$|justfile$)'
- id: cargo-clippy
name: cargo clippy
entry: just clippy
language: system
pass_filenames: false
files: '^(src/|tests/|Cargo\.(toml|lock)$|deny\.toml$|rust-toolchain\.toml$|dist-workspace\.toml$|justfile$)'
- id: cargo-test
name: cargo test (manual)
entry: just test
language: system
pass_filenames: false
stages: [manual]