commit b9dac5800c75279dd289a6c524de73ac851de4cf parent 0434e6940eb9914d8c8ce1c3aacdc285822e2860 Author: mtmn <miro@haravara.org> Date: Wed, 6 May 2026 21:54:44 +0200 chore: migrate prek cfg to prek.toml Diffstat:
| D | .pre-commit-config.yaml | | | 23 | ----------------------- |
| A | prek.toml | | | 29 | +++++++++++++++++++++++++++++ |
2 files changed, 29 insertions(+), 23 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml @@ -1,23 +0,0 @@ ---- -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 - - - repo: https://github.com/biomejs/pre-commit - rev: v2.4.11 - hooks: - - id: biome-format - - - repo: https://github.com/gitleaks/gitleaks - rev: v8.30.1 - hooks: - - id: gitleaks - - - repo: https://github.com/astro/deadnix - rev: v1.3.1 - hooks: - - id: deadnix diff --git a/prek.toml b/prek.toml @@ -0,0 +1,29 @@ +[[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" } +]