Add treefmt
pre-commit
hook
This lets us use different formatters for different filetypes.
Change-Id: Ib52383dd5097c8919a65e299aca2b5a55412223c
This commit is contained in:
parent
7b3ef56094
commit
e7316a8e99
|
@ -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
1
treefmt.toml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
[formatter]
|
Loading…
Reference in a new issue