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 7b3ef56094
commit e7316a8e99
2 changed files with 5 additions and 0 deletions

View file

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

1
treefmt.toml Normal file
View file

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