Skip to content

Commit 077ce28

Browse files
committed
chore(pre-commit): add rust lints
1 parent d32d91e commit 077ce28

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.pre-commit-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,18 @@ repos:
5252
entry: uv run taplo lint
5353
args:
5454
- --default-schema-catalogs
55+
- id: cargo-fmt # rustup component add rustfmt
56+
name: Check rust (cargo fmt)
57+
entry: cargo fmt --all --
58+
language: system
59+
types: [rust]
60+
pass_filenames: false
61+
- id: cargo-clippy # rustup component add clippy
62+
name: Check rust (cargo clippy)
63+
entry: cargo clippy --tests --all-features -- -D warnings
64+
language: system
65+
pass_filenames: false
66+
types: [rust]
5567

5668
- repo: https://github.com/jendrikseipp/vulture
5769
rev: v2.14

0 commit comments

Comments
 (0)