repos:
# Rust formatting and linting
- repo: local
hooks:
- id: cargo-fmt
name: cargo fmt
entry: cargo fmt --all --
language: system
types:
pass_filenames: false
- id: cargo-clippy-default
name: cargo clippy (default features)
entry: cargo clippy --lib -- -D warnings
language: system
types:
pass_filenames: false
# General file formatting
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-json
- id: check-merge-conflict
- id: check-case-conflict
- id: mixed-line-ending
# Configuration
default_language_version:
python: python3
fail_fast: false