mirror of
https://github.com/uutils/coreutils
synced 2024-09-06 07:54:05 +00:00
![Sylvestre Ledru](/assets/img/avatar_default.png)
it was showing: [WARNING] normalizing pre-commit configuration to a top-level map. support for top level list will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this.
18 lines
546 B
YAML
18 lines
546 B
YAML
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: rust-linting
|
|
name: Rust linting
|
|
description: Run cargo fmt on files included in the commit.
|
|
entry: cargo +nightly 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 +nightly clippy --all-targets --all-features --
|
|
pass_filenames: false
|
|
types: [file, rust]
|
|
language: system
|