diff options
| author | Franck Cuny <franck@fcuny.net> | 2024-12-16 19:18:17 -0800 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2024-12-16 19:18:17 -0800 |
| commit | 09ef655bff9a1a597622289b29d2c2b1c6080ce7 (patch) | |
| tree | a992fb041d5f4fb3a3f585dc67ea54a3e2808a58 | |
| parent | install rustup (diff) | |
| download | infra-09ef655bff9a1a597622289b29d2c2b1c6080ce7.tar.gz | |
configure correctly pre-commit checks
The configuration was not regenerated properly.
| -rw-r--r-- | flake.nix | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -39,7 +39,8 @@ # Output config, or config for NixOS system outputs = - { nixpkgs + { self + , nixpkgs , darwin , flake-utils , pre-commit-hooks @@ -61,6 +62,7 @@ pre-commit-check = pre-commit-hooks.lib.${system}.run { src = ./.; hooks = { + shellcheck.enable = true; nixpkgs-fmt.enable = true; check-merge-conflicts.enable = true; end-of-file-fixer.enable = true; @@ -74,6 +76,8 @@ agenix inputs.agenix.packages."${system}".default ]; + devshell.startup.pre-commit.text = + self.checks.${system}.pre-commit-check.shellHook; env = [{ name = "DEVSHELL_NO_MOTD"; value = "1"; |
