From 655dae03deaba8b74076230119b211ca19757b5d Mon Sep 17 00:00:00 2001 From: Rebecca Turner Date: Wed, 27 Mar 2024 12:28:44 -0700 Subject: Add `treefmt` `pre-commit` hook This lets us use different formatters for different filetypes. Change-Id: Ib52383dd5097c8919a65e299aca2b5a55412223c --- flake.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index be163e386..70b83c251 100644 --- a/flake.nix +++ b/flake.nix @@ -331,6 +331,10 @@ stages = [ "commit" ]; excludes = [ "^tests/functional/lang/" ]; }; + treefmt = { + enable = true; + settings.formatters = [ ]; + }; }; }) pre-commit-hooks.lib; }; -- cgit v1.2.3