mirror of
https://github.com/uutils/coreutils
synced 2024-12-22 11:03:12 +00:00
Merge pull request #2313 from jhscheer/precommit
fix precommit for clippy nightly
This commit is contained in:
commit
2511abbfa8
1 changed files with 15 additions and 6 deletions
|
@ -1,8 +1,17 @@
|
||||||
# https://pre-commit.com
|
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/doublify/pre-commit-rust
|
- repo: local
|
||||||
rev: v1.0
|
|
||||||
hooks:
|
hooks:
|
||||||
- id: cargo-check
|
- id: rust-linting
|
||||||
- id: clippy
|
name: Rust linting
|
||||||
- id: fmt
|
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
|
||||||
|
|
Loading…
Reference in a new issue