selecta-highscore/prek.toml
2026-06-12 00:27:52 +02:00

44 lines
1000 B
TOML

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