forked from doublify/pre-commit-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
baeaa9c
commit a6f5724
Showing
2 changed files
with
9 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,8 @@ | ||
- id: fmt | ||
name: fmt | ||
description: Format files with cargo fmt. | ||
entry: cargo fmt -- | ||
language: system | ||
files: \.rs$ | ||
args: [] | ||
- id: cargo-check | ||
name: cargo check | ||
description: Check the package for errors. | ||
entry: cargo check | ||
language: system | ||
files: \.rs$ | ||
pass_filenames: false | ||
- id: cargo-clippy | ||
name: cargo clippy | ||
description: Run the Clippy linter on the package. | ||
entry: cargo clippy -- -D warnings | ||
language: system | ||
files: \.rs$ | ||
pass_filenames: false | ||
- id: cargo-test | ||
name: cargo test | ||
description: Run tests with cargo | ||
entry: cargo test | ||
language: system | ||
args: [""] | ||
always_run: true | ||
verbose: true | ||
- id: cargo-test | ||
name: cargo test | ||
description: Run tests with cargo | ||
entry: cargo test | ||
language: system | ||
args: [""] | ||
always_run: true | ||
verbose: true |