commit 22e2d58875e0b01a279e1d73bdee41fea05f20ab
parent cd5524ce778d7e5969bf08a0ecbca226d2449e94
Author: mtmn <miro@haravara.org>
Date: Thu, 7 May 2026 18:45:41 +0200
ci: add pre-commit hooks
Diffstat:
| A | prek.toml | | | 41 | +++++++++++++++++++++++++++++++++++++++++ |
1 file changed, 41 insertions(+), 0 deletions(-)
diff --git a/prek.toml b/prek.toml
@@ -0,0 +1,41 @@
+[[repos]]
+repo = "https://github.com/pre-commit/pre-commit-hooks"
+rev = "v6.0.0"
+hooks = [
+ { id = "trailing-whitespace" },
+ { id = "end-of-file-fixer" },
+ { id = "double-quote-string-fixer" }
+]
+
+[[repos]]
+repo = "https://github.com/biomejs/pre-commit"
+rev = "v2.4.14"
+hooks = [
+ { id = "biome-format" }
+]
+
+[[repos]]
+repo = "https://github.com/gitleaks/gitleaks"
+rev = "v8.30.1"
+hooks = [
+ { id = "gitleaks" }
+]
+
+[[repos]]
+repo = "https://github.com/astro/deadnix"
+rev = "v1.3.1"
+hooks = [
+ { id = "deadnix" }
+]
+
+[[repos]]
+repo = "local"
+hooks = [
+ {
+ id = "alejandra",
+ name = "alejandra",
+ language = "system",
+ entry = "alejandra",
+ files = '\.nix$'
+ },
+]