chore: prek

This commit is contained in:
Loïc Gremaud 2026-06-12 00:27:45 +02:00
parent db8d1fbc84
commit 01bcc71e58
Signed by: Legrems
GPG Key ID: D4620E6DF3E0121D

43
prek.toml Normal file
View File

@ -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" },
]