feat: initial commit
This commit is contained in:
commit
2ec883ff80
12 changed files with 610 additions and 0 deletions
32
shell/git-hooks.nix
Normal file
32
shell/git-hooks.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue