From 422ae1f1a70c5c97bd26756d0f61ad011ccea87f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BChlbacher?= Date: Tue, 28 May 2024 19:03:36 +0200 Subject: [PATCH] build(nix): add cargo clippy check note that this only checks the top-level package, `bch_bindgen` is excluded because it has too many clippy lints. --- flake.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/flake.nix b/flake.nix index 291d10f9..c6f5e6aa 100644 --- a/flake.nix +++ b/flake.nix @@ -131,6 +131,14 @@ } ); + checks.cargo-clippy = craneLib.cargoClippy ( + commonArgs + // { + inherit cargoArtifacts; + cargoClippyExtraArgs = "--all-targets -- --deny warnings"; + } + ); + devShells.default = pkgs.mkShell { inputsFrom = [ config.packages.default