-
Notifications
You must be signed in to change notification settings - Fork 92
Expand file tree
/
Copy pathprek.toml
More file actions
98 lines (84 loc) · 2.64 KB
/
Copy pathprek.toml
File metadata and controls
98 lines (84 loc) · 2.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Configuration file for `prek`, a git hook framework written in Rust.
# See https://prek.j178.dev for more information.
#:schema https://www.schemastore.org/prek.json
default_install_hook_types = [
"pre-commit",
"commit-msg",
"pre-push",
]
default_stages = ["pre-commit"]
[[repos]]
repo = "https://github.com/compilerla/conventional-pre-commit"
rev = "v4.4.0"
hooks = [
{
id = "conventional-pre-commit",
stages = ["commit-msg"],
args = ["feat", "fix", "build", "ci", "chore", "docs", "drop", "edit",
"perf", "polish", "root", "refactor", "revert", "style", "temp", "tests"]
}
]
[[repos]]
repo = "builtin"
hooks = [
{ id = "check-executables-have-shebangs" },
{ id = "check-json" },
{ id = "check-merge-conflict" },
{ id = "check-symlinks" },
{ id = "check-toml" },
{ id = "check-yaml", args = ["--allow-multiple-documents"] },
{ id = "detect-private-key" },
{ id = "end-of-file-fixer" },
{ id = "fix-byte-order-marker" },
{ id = "mixed-line-ending" },
{ id = "trailing-whitespace" },
]
[[repos]]
repo = "meta"
hooks = [{ id = "check-useless-excludes" }]
[[repos]]
repo = "https://github.com/astral-sh/ruff-pre-commit"
rev = "v0.16.2"
hooks = [{ id = "ruff-check" }, { id = "ruff-format" }]
[[repos]]
repo = "https://github.com/codespell-project/codespell"
rev = "v2.4.3"
hooks = [{ id = "codespell" }]
[[repos]]
repo = "https://github.com/JoC0de/pre-commit-prettier"
rev = "v3.9.6"
hooks = [{ id = "prettier", types_or = ["css", "javascript", "json", "scss", "ts", "yaml"] }]
[[repos]]
repo = "https://github.com/rvben/rumdl-pre-commit"
rev = "v0.2.53"
hooks = [{ id = "rumdl" }, { id = "rumdl-fmt" }]
[[repos]]
repo = "https://github.com/zizmorcore/zizmor-pre-commit"
rev = "v1.29.0"
hooks = [{ id = "zizmor" }]
[[repos]]
# prefer shellcheck-py to avoid dependence on Docker
repo = "https://github.com/shellcheck-py/shellcheck-py"
rev = "v0.11.0.1"
hooks = [{ id = "shellcheck", files = '\.sh$'}]
[[repos]]
repo = "https://github.com/scop/pre-commit-shfmt"
rev = "v3.13.1-1"
hooks = [{ id = "shfmt", args = ["-i", "2", "-ci"], files = '\.sh$' }]
[[repos]]
# djlint not used by dotfiles, but doesn't hurt to have it
repo = "https://github.com/djlint/djLint"
rev = "v1.44.2"
hooks = [
{ id = "djlint-reformat", types = ["html"], files = "templates/" },
{ id = "djlint", types = ["html"], files = "templates/" }
]
[[repos]]
# uv not used by dotfiles, but doesn't hurt to have it
repo = "https://github.com/astral-sh/uv-pre-commit"
rev = "0.12.3"
hooks = [{ id = "uv-lock" }, { id = "uv-export" }]
[[repos]]
repo = "https://github.com/Vimjas/vint"
rev = "v0.4a3"
hooks = [{id = "vint", files = '(\.vim$|vimrc$)', exclude = 'plug\.vim$'}]