Move formatting check to a per-commit basis

This commit is contained in:
Matteo Settenvini 2022-07-01 22:37:29 +02:00
parent 59b77ad62d
commit 2f79367994
Signed by: matteo
GPG Key ID: 8576CC1AD97D42DF
1 changed files with 2 additions and 2 deletions

View File

@ -2,5 +2,5 @@
# SPDX-License-Identifier: CC0-1.0
[hooks]
pre-commit = "reuse lint && cargo test"
pre-push = "cargo check && cargo fmt -- --check"
pre-commit = "reuse lint && cargo fmt -- --check && cargo test"
pre-push = "cargo check"