Skip to content

Commit

Permalink
pare down to only cargo test
Browse files Browse the repository at this point in the history
  • Loading branch information
ShockleyJE committed May 5, 2023
1 parent baeaa9c commit a6f5724
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 52 deletions.
24 changes: 1 addition & 23 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,5 @@
- id: fmt
name: fmt
description: Format files with cargo fmt.
entry: cargo fmt
language: system
types: [rust]
args: ["--"]
- id: cargo-check
name: cargo check
description: Check the package for errors.
entry: cargo check
language: system
types: [rust]
pass_filenames: false
- id: clippy
name: clippy
description: Lint rust sources
entry: cargo clippy
language: system
args: ["--", "-D", "warnings"]
types: [rust]
pass_filenames: false
- id: cargo-test
name: cargo test
name: test
description: Run tests with cargo
entry: cargo test
language: system
Expand Down
37 changes: 8 additions & 29 deletions hooks.yaml
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

0 comments on commit a6f5724

Please sign in to comment.