coreutils/.pre-commit-config.yaml
David Campbell e8bb8dffa1
Change the git pre-commit actions to work on stable.
These are not being fixed, so it does not make sense to constantly
take on new lints. The fmts may never be stabilized. Currently,
you can not even commit, because it errors out. At least switch to
lints that make it to stable when they are released.
2024-09-19 12:15:04 -04:00

17 lines
540 B
YAML

repos:
- repo: local
hooks:
- id: rust-linting
name: Rust linting
description: Run cargo fmt on files included in the commit.
entry: cargo 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 clippy --workspace --all-targets --all-features --
pass_filenames: false
types: [file, rust]
language: system