From 58f93d5bc8d3ff74c6770fd3fda1b5a6099d3063 Mon Sep 17 00:00:00 2001
From: Valentin Lorentz <vlorentz@softwareheritage.org>
Date: Wed, 11 Sep 2024 13:13:32 +0200
Subject: [PATCH] pre-commit: Fix Clippy command

1. it should run on all the code
2. it should run a non-zero exit when there are warnings
---
 .pre-commit-config.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 5764e8839..3483a4203 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -63,6 +63,6 @@ repos:
       - id: cargo-check
         args: ["--all-features"]
       - id: clippy
-        args: ["--all-features"]
+        args: ["--all-features", "--all-targets", "--", "--deny", "warnings"]
 
 exclude: ^swh/graph/grpc/
-- 
GitLab