diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 80b7c98..9ddb1e1 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -1,21 +1,21 @@ - id: fmt name: fmt - description: Format files with rustfmt. - entry: rustfmt -- + description: Format files with cargo fmt. + entry: cargo fmt -- language: system - files: \.rs$ + types: [rust] args: [] - id: cargo-check name: cargo check description: Check the package for errors. entry: cargo check language: system - files: \.rs$ + types: [rust] pass_filenames: false - id: clippy name: clippy description: Lint rust sources entry: cargo clippy -- -D warnings language: system - files: \.rs$ + types: [rust] pass_filenames: false diff --git a/hooks.yaml b/hooks.yaml index 22bec7d..ca02623 100644 --- a/hooks.yaml +++ b/hooks.yaml @@ -1,7 +1,7 @@ - id: fmt name: fmt - description: Format files with rustfmt. - entry: rustfmt -- + description: Format files with cargo fmt. + entry: cargo fmt -- language: system files: \.rs$ args: []