Add treefmt pre-commit hook

This lets us use different formatters for different filetypes.

Change-Id: Ib52383dd5097c8919a65e299aca2b5a55412223c
This commit is contained in:
Rebecca Turner 2024-03-27 12:28:44 -07:00
parent 2a98ba8b97
commit 655dae03de
2 changed files with 5 additions and 0 deletions

View file

@ -331,6 +331,10 @@
stages = [ "commit" ];
excludes = [ "^tests/functional/lang/" ];
};
treefmt = {
enable = true;
settings.formatters = [ ];
};
};
}) pre-commit-hooks.lib;
};

1
treefmt.toml Normal file
View file

@ -0,0 +1 @@
[formatter]