Manage pre-commit hooks with devenv
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 0s

This commit is contained in:
alejandro-angulo 2025-08-02 22:29:10 -07:00
parent 8268528dd2
commit 34246c71d4
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
5 changed files with 254 additions and 4 deletions

21
devenv.nix Normal file
View file

@ -0,0 +1,21 @@
{ pkgs, ... }:
{
packages = [
pkgs.nixfmt-rfc-style
pkgs.nixd
pkgs.deploy-rs
pkgs.git
];
git-hooks.hooks = {
# Basic file hygiene
trim-trailing-whitespace.enable = true;
end-of-file-fixer.enable = true;
check-yaml.enable = true;
check-added-large-files = {
enable = true;
excludes = [ ".*\\.png$" ];
};
nixfmt-rfc-style.enable = true;
};
}