Skip to content

Commit 94b710b

Browse files
author
jh-devv
committed
chore(nix): remove 'pre-commit-hooks.nix' in favor of the code being in 'flake.nix'
1 parent 299f316 commit 94b710b

File tree

2 files changed

+12
-16
lines changed

2 files changed

+12
-16
lines changed

flake.nix

+12-1
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,25 @@
1616
systems = ["x86_64-linux"];
1717

1818
imports = [
19-
./pre-commit-hooks.nix
19+
inputs.pre-commit-hooks.flakeModule
2020
];
2121

2222
perSystem = {
2323
config,
2424
pkgs,
2525
...
2626
}: {
27+
pre-commit = {
28+
settings.excludes = ["flake.lock"];
29+
30+
settings = {
31+
hooks = {
32+
alejandra.enable = true;
33+
yamllint.enable = true;
34+
markdownlint.enable = true;
35+
};
36+
};
37+
};
2738
devShells.default = pkgs.mkShell {
2839
packages = [
2940
pkgs.alejandra

pre-commit-hooks.nix

-15
This file was deleted.

0 commit comments

Comments
 (0)