Skip to content

Commit

Permalink
Updating fmt and clippy options
Browse files Browse the repository at this point in the history
  • Loading branch information
stevedoyle committed Jul 17, 2024
1 parent 7a2de6c commit bcdf60f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 32 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
- id: fmt
name: fmt
- id: rustfmt
name: rustfmt
description: Format files with cargo fmt.
entry: cargo fmt
language: system
types: [rust]
args: ["--"]
args: ["--all", "--", "--check", "--color", "always"]
- id: cargo-check
name: cargo check
description: Check the package for errors.
Expand All @@ -17,8 +17,8 @@
description: Lint rust sources
entry: cargo clippy
language: system
args: ["--", "-D", "warnings"]
types: [rust]
args: ["--all-targets", "--all-features", --", "-Dclippy::all"]
types: [file, rust]
pass_filenames: false
- id: cargo-test
name: cargo test
Expand Down
27 changes: 0 additions & 27 deletions hooks.yaml

This file was deleted.

0 comments on commit bcdf60f

Please sign in to comment.