coreutils/.pre-commit-config.yaml
Ben Wiederhake caa4d1c57b Change the git pre-commit actions to *actually* use stable
This is in response to #6715: e8bb8dffa1
The pre-commit actions have a higher MSRV than the overall project (1.70.0),
so if 1.70.0 is the configured default, this lead to problems (#6730).
This commit fixes the situation by specifying 'stable', whatever that means on the user's system.
2024-09-30 22:51:30 +02:00

17 lines
556 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