chore: prek
This commit is contained in:
parent
db8d1fbc84
commit
01bcc71e58
43
prek.toml
Normal file
43
prek.toml
Normal 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" },
|
||||
]
|
||||
Loading…
Reference in New Issue
Block a user