From f9aca9ca2aac6a16d39e7c1a4ecc5a3bfe0df6db Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Wed, 18 Jan 2023 19:30:40 +0200 Subject: [PATCH] Run cargo fmt in pre-commit --- .pre-commit-config.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a800ab679439d..90972efaddca5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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]