From d1eab2d927715319be15b7ba7faabe2e5142e6b9 Mon Sep 17 00:00:00 2001 From: Rebecca Turner Date: Wed, 27 Mar 2024 12:28:44 -0700 Subject: [PATCH] Add `treefmt` `pre-commit` hook This lets us use different formatters for different filetypes. Change-Id: Ib52383dd5097c8919a65e299aca2b5a55412223c --- flake.nix | 4 ++++ treefmt.toml | 1 + 2 files changed, 5 insertions(+) create mode 100644 treefmt.toml 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; }; diff --git a/treefmt.toml b/treefmt.toml new file mode 100644 index 000000000..81df72cc2 --- /dev/null +++ b/treefmt.toml @@ -0,0 +1 @@ +[formatter]