feat: initial commit

This commit is contained in:
Maurice Debray 2025-12-10 20:32:34 +01:00 committed by sinavir
commit 2ec883ff80
12 changed files with 610 additions and 0 deletions

32
shell/git-hooks.nix Normal file
View file

@ -0,0 +1,32 @@
# SPDX-FileCopyrightText: 2025 Tom Hubrecht <tom.hubrecht@dgnum.eu>
#
# SPDX-License-Identifier: EUPL-1.2
{ sprinkle, pkgs }:
let
inherit (sprinkle.input.nixpkgs.lib) genAttrs recursiveUpdate getExe;
in
sprinkle.input.git-hooks.run {
inherit (sprinkle.output) src;
default_stages = [
"pre-commit"
"pre-push"
];
hooks = {
black.enable = true;
isort.enable = true;
ruff.enable = true;
commitizen.enable = true;
nixfmt-rfc-style.enable = true;
reuse = sprinkle.input.nix-reuse.output.gitHook { };
# Rust
cargo-check.enable = true;
rustfmt.enable = true;
};
}