1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-merge-conflict
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: fmt
- repo: local
hooks:
- id: cargo-check-locked
name: cargo check
description: Check the package for errors.
entry: cargo check --locked
language: system
files: Cargo.(lock|toml)$
pass_filenames: false
- id: cargo-clippy-locked
name: cargo clippy
description: Run the Clippy linter on all the targets.
entry: cargo clippy --locked --all-targets --all-features -- -D warnings
language: system
files: \.rs$
pass_filenames: false
|