Skip to content

Commit 8e39366

Browse files
Marc Jakobivhyrro
authored andcommitted
ci: enable clippy and cargo check
1 parent f45f04f commit 8e39366

File tree

2 files changed

+21
-8
lines changed

2 files changed

+21
-8
lines changed

flake.lock

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
66
flake-parts.url = "github:hercules-ci/flake-parts";
77
pre-commit-hooks = {
8-
url = "github:cachix/pre-commit-hooks.nix";
8+
# TODO: https://github.com/cachix/pre-commit-hooks.nix/pull/396
9+
# url = "github:cachix/pre-commit-hooks.nix";
10+
url = "github:mrcjkb/pre-commit-hooks.nix/clippy";
911
inputs.nixpkgs.follows = "nixpkgs";
1012
};
1113
};
@@ -44,8 +46,18 @@
4446
hooks = {
4547
alejandra.enable = true;
4648
rustfmt.enable = true;
47-
# clippy.enable = true;
48-
# cargo-check.enable = true;
49+
clippy.enable = true;
50+
cargo-check.enable = true;
51+
};
52+
settings = {
53+
runtimeDeps = pkgs.rocks.buildInputs ++ pkgs.rocks.nativeBuildInputs;
54+
rust.cargoDeps = pkgs.rustPlatform.importCargoLock {
55+
lockFile = ./Cargo.lock;
56+
};
57+
clippy = {
58+
denyWarnings = true;
59+
allFeatures = true;
60+
};
4961
};
5062
};
5163
in {

0 commit comments

Comments
 (0)