We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 299f316 commit 026a3d5Copy full SHA for 026a3d5
flake.nix
@@ -16,23 +16,30 @@
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 = [
- pkgs.alejandra
40
pkgs.git
41
pkgs.packwiz
- pkgs.yamllint
42
- name = "mc-modpack-kit";
- DIRENV_LOG_FORMAT = "";
43
shellHook = ''
44
${config.pre-commit.installationScript}
45
'';
pre-commit-hooks.nix
0 commit comments