-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathprek.toml
More file actions
73 lines (71 loc) · 1.45 KB
/
prek.toml
File metadata and controls
73 lines (71 loc) · 1.45 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
exclude = { glob = [
"simulator/lvgl/**",
"simulator/FreeRTOS/**",
"esp/managed_components/**",
"esp/components/bsp_jc8012p4a1c/**",
"esp/components/bsp_jc4880p443c/**",
"esp/components/bsp_jc1060p470c/**",
"esp/components/esp_lcd_touch_gsl3680/**",
"build/**",
"shared/ui/fonts/**",
"docs/**",
] }
[[repos]]
repo = "builtin"
hooks = [
{ id = "trailing-whitespace" },
{ id = "end-of-file-fixer" },
]
[[repos]]
repo = "local"
hooks = [
{
id = "clang-format",
name = "clang-format",
language = "system",
entry = "clang-format-20 -i",
types_or = ["c", "c++"],
},
{
id = "shfmt",
name = "shfmt",
language = "system",
entry = "shfmt -w",
types = ["shell"],
},
{
id = "shellcheck",
name = "shellcheck",
language = "system",
entry = "shellcheck -x",
types = ["shell"],
},
{
id = "biome-check",
name = "biome-check",
language = "system",
entry = "biome check --write --no-errors-on-unmatched",
types_or = ["html", "css", "javascript", "json"],
},
{
id = "ruff-check",
name = "ruff-check",
language = "system",
entry = "ruff check --fix",
types = ["python"],
},
{
id = "ruff-format",
name = "ruff-format",
language = "system",
entry = "ruff format",
types = ["python"],
},
{
id = "cmake-format",
name = "cmake-format",
language = "system",
entry = "cmake-format --in-place",
types = ["cmake"],
},
]