Manage pre-commit hooks with devenv
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 0s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 0s
This commit is contained in:
parent
8268528dd2
commit
34246c71d4
5 changed files with 254 additions and 4 deletions
21
devenv.nix
Normal file
21
devenv.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue