1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2026-01-14 17:21:04 +00:00
uutils-coreutils/.pre-commit-config.yaml
Nicolas Boichat 4a959d4bdd .pre-commit-config.yaml: Also run cspell
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.
2025-03-25 13:57:08 +01:00

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