Simplify 'clang-format' pre-commit hook

This commit is contained in:
Bruno BELANYI 2022-11-22 10:24:43 +01:00
parent 81d0730632
commit bc0f83fdeb

View file

@ -104,12 +104,9 @@
hooks = {
clang-format = {
enable = true;
name = "clang-format";
entry = "${pkgs.clang-tools}/bin/clang-format -style=file -i";
types = [ "text" "c" ];
# I don't care for generated files' formatting
excludes = [ "src/parser.c" "src/tree_sitter/parser.h" ];
language = "system";
};
nixpkgs-fmt = {