aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrebecca “wiggles” turner <rbt@sent.as>2024-04-03 00:09:09 +0000
committerGerrit Code Review <gerrit@lix>2024-04-03 00:09:09 +0000
commit56c7dfd65290dea957de6fad4e2df26f1630e407 (patch)
tree94423d1f92d5526d50661f85a65dad0a05d1496d
parentfa4a0fc6a4bef9c9bbf5e66894aadb1cb2e7ddc7 (diff)
parent655dae03deaba8b74076230119b211ca19757b5d (diff)
Merge "Add `treefmt` `pre-commit` hook" into main
-rw-r--r--flake.nix4
-rw-r--r--treefmt.toml1
2 files changed, 5 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 35d0509f9..0f64050f4 100644
--- a/flake.nix
+++ b/flake.nix
@@ -329,6 +329,10 @@
stages = [ "commit" ];
excludes = [ "^tests/functional/lang/" ];
};
+ treefmt = {
+ enable = true;
+ settings.formatters = [ ];
+ };
};
}) pre-commit-hooks.lib;
};
diff --git a/treefmt.toml b/treefmt.toml
new file mode 100644
index 000000000..81df72cc2
--- /dev/null
+++ b/treefmt.toml
@@ -0,0 +1 @@
+[formatter]