repos:
- repo: local
hooks:
- id: cargo-fmt
name: cargo fmt
entry: cargo fmt
language: system
types: [rust]
pass_filenames: false
args: ["--all", "--", "--check"]
- repo: local
hooks:
- id: cargo-clippy
name: cargo clippy
entry: cargo clippy
language: system
types: [rust]
pass_filenames: false
args: ["--all-targets", "--all-features", "--", "-D", "warnings"]
- repo: local
hooks:
- id: cargo-test
name: cargo test
entry: cargo test
language: system
types: [rust]
pass_filenames: false
args: ["--lib"]
- repo: local
hooks:
- id: cargo-check
name: cargo check
entry: cargo check
language: system
types: [rust]
pass_filenames: false
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-merge-conflict
- id: check-added-large-files
args: ['--maxkb=5000']
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.43.0
hooks:
- id: markdownlint
args: ['--fix']