mirror of https://github.com/astral-sh/ruff
Run cargo fmt in pre-commit (#1968)
Since `cargo fmt` is a required CI check, we could just as well run it in `pre-commit`.
This commit is contained in:
parent
1e803f7108
commit
ff2be35f51
|
|
@ -8,3 +8,11 @@ repos:
|
|||
rev: v0.10.1
|
||||
hooks:
|
||||
- id: validate-pyproject
|
||||
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: cargo-fmt
|
||||
name: cargo fmt
|
||||
entry: cargo fmt --
|
||||
language: rust
|
||||
types: [rust]
|
||||
|
|
|
|||
Loading…
Reference in New Issue