From b8fafdec45b0846ba970377a269322f33cd541a0 Mon Sep 17 00:00:00 2001 From: "Patrick C." <3180910+therealpxc@users.noreply.github.com> Date: Mon, 29 Apr 2024 20:07:23 -0700 Subject: [PATCH] modules/hooks.nix: restore alphabetical order --- modules/hooks.nix | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/hooks.nix b/modules/hooks.nix index b686e61b..3aba636a 100644 --- a/modules/hooks.nix +++ b/modules/hooks.nix @@ -3462,15 +3462,6 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.ormol ); files = "(\\.json$)|(\\.toml$)|(\\.mli?$)"; }; - trim-trailing-whitespace = - { - name = "trim-trailing-whitespace"; - description = "Trim trailing whitespace."; - types = [ "text" ]; - stages = [ "commit" "push" "manual" ]; - package = tools.pre-commit-hooks; - entry = "${hooks.trim-trailing-whitespace.package}/bin/trailing-whitespace-fixer"; - }; treefmt = let inherit (hooks.treefmt) packageOverrides settings; @@ -3496,6 +3487,15 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.ormol packageOverrides = { treefmt = tools.treefmt; }; entry = "${hooks.treefmt.package}/bin/treefmt --fail-on-change"; }; + trim-trailing-whitespace = + { + name = "trim-trailing-whitespace"; + description = "Trim trailing whitespace."; + types = [ "text" ]; + stages = [ "commit" "push" "manual" ]; + package = tools.pre-commit-hooks; + entry = "${hooks.trim-trailing-whitespace.package}/bin/trailing-whitespace-fixer"; + }; typos = { name = "typos";