Skip to content

Commit eb308e5

Browse files
committed
chore: add pre-commit hooks
1 parent e3d20ec commit eb308e5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.pre-commit-config.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
repos:
2+
- repo: https://github.com/doublify/pre-commit-rust
3+
rev: v1.0
4+
hooks:
5+
- id: fmt
6+
args: ["--", "--check"]
7+
- id: clippy
8+
args: ["--workspace", "--all-targets", "--all-features", "--", "-D", "warnings"]
9+
10+
- repo: https://github.com/astral-sh/ruff-pre-commit
11+
rev: v0.9.10
12+
hooks:
13+
- id: ruff
14+
- id: ruff-format

0 commit comments

Comments
 (0)