mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2026-01-14 17:21:04 +00:00
That cuaght me a few times... I think it's reasonable to ask devs to install cspell locally if they want to use the pre-commit hook.
23 lines
758 B
YAML
23 lines
758 B
YAML
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: rust-linting
|
|
name: Rust linting
|
|
description: Run cargo fmt on files included in the commit.
|
|
entry: cargo +stable fmt --
|
|
pass_filenames: true
|
|
types: [file, rust]
|
|
language: system
|
|
- id: rust-clippy
|
|
name: Rust clippy
|
|
description: Run cargo clippy on files included in the commit.
|
|
entry: cargo +stable clippy --workspace --all-targets --all-features --
|
|
pass_filenames: false
|
|
types: [file, rust]
|
|
language: system
|
|
- id: cspell
|
|
name: Code spell checker (cspell)
|
|
description: Run cspell to check for spelling errors.
|
|
entry: cspell --
|
|
pass_filenames: true
|
|
language: system
|