diff options
author | Rebecca Turner <rbt@sent.as> | 2024-03-27 12:28:44 -0700 |
---|---|---|
committer | Rebecca Turner <rbt@sent.as> | 2024-03-29 22:57:43 -0700 |
commit | 655dae03deaba8b74076230119b211ca19757b5d (patch) | |
tree | 73c4e8b8b8073ac34a276cc56d549e3210eb5af6 /flake.nix | |
parent | 2a98ba8b97c9ff52519633c32cf63716827d6e7c (diff) |
Add `treefmt` `pre-commit` hook
This lets us use different formatters for different filetypes.
Change-Id: Ib52383dd5097c8919a65e299aca2b5a55412223c
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -331,6 +331,10 @@ stages = [ "commit" ]; excludes = [ "^tests/functional/lang/" ]; }; + treefmt = { + enable = true; + settings.formatters = [ ]; + }; }; }) pre-commit-hooks.lib; }; |