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:
Aarni Koskela 2023-01-18 20:14:51 +02:00 committed by GitHub
parent 1e803f7108
commit ff2be35f51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -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]