---
exclude: ^(README.md)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0 hooks: - id: trailing-whitespace
- id: check-added-large-files
- id: check-case-conflict
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: check-json
- id: check-toml
- id: check-yaml
- id: check-xml
- id: mixed-line-ending
- id: check-symlinks
- id: check-merge-conflict
- id: detect-private-key
- id: no-commit-to-branch
- id: check-executables-have-shebangs
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.11.0 hooks:
- id: commitizen
- id: commitizen-branch
stages: [pre-push]
- repo: https://github.com/FeryET/pre-commit-rust
rev: v1.2.1
hooks:
- id: fmt
name: cargo fmt
- id: cargo-check
name: cargo check
- id: build
name: cargo build
- id: test
name: cargo test
- repo: https://github.com/amperser/proselint/
rev: v0.16.0
hooks:
- id: proselint
name: proselint check
args: [check, --config=./.proselint.json]
types:
- markdown
- repo: local
hooks:
- id: cargo-shear
name: cargo shear
description: Check for unused dependencies.
entry: cargo shear
language: system
types: [rust]
pass_filenames: false
stages:
- pre-commit
- pre-merge-commit
- manual