From 01bcc71e587273d0558a2dda27bbe5e1711cf616 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Gremaud?= Date: Fri, 12 Jun 2026 00:27:45 +0200 Subject: [PATCH] chore: prek --- prek.toml | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 prek.toml diff --git a/prek.toml b/prek.toml new file mode 100644 index 0000000..2e2ef31 --- /dev/null +++ b/prek.toml @@ -0,0 +1,43 @@ +default_install_hook_types = ["pre-commit", "commit-msg"] + +[[repos]] +repo = "https://github.com/astral-sh/ruff-pre-commit" +rev = "v0.14.14" +hooks = [ + { id = "ruff-check", args = ["--fix"], types_or = ["python", "pyi"] }, + { id = "ruff-format", types_or = ["python", "pyi"] }, +] + +[[repos]] +repo = "https://github.com/djlint/djLint" +rev = "v1.36.4" +hooks = [ + { id = "djlint", args = ["--reformat", "--format-js", "--format-css"] }, +] + +[[repos]] +repo = "https://github.com/commitizen-tools/commitizen" +rev = "v3.29.0" +hooks = [ + { id = "commitizen", stages = ["commit-msg"]}, +] + +[[repos]] +repo = "https://github.com/astral-sh/uv-pre-commit" +rev = "0.10.8" +hooks = [ + { id = "uv-lock" }, +] + +[[repos]] +repo = "builtin" +hooks = [ + { id = "check-added-large-files" }, + { id = "check-json" }, + { id = "check-merge-conflict" }, + { id = "check-toml" }, + { id = "check-yaml" }, + { id = "end-of-file-fixer" }, + { id = "pretty-format-json", args=["--autofix"] }, + { id = "trailing-whitespace" }, +]