We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 299f316 commit 94b710bCopy full SHA for 94b710b
flake.nix
@@ -16,14 +16,25 @@
16
systems = ["x86_64-linux"];
17
18
imports = [
19
- ./pre-commit-hooks.nix
+ inputs.pre-commit-hooks.flakeModule
20
];
21
22
perSystem = {
23
config,
24
pkgs,
25
...
26
}: {
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
38
devShells.default = pkgs.mkShell {
39
packages = [
40
pkgs.alejandra
pre-commit-hooks.nix
0 commit comments