-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprek.toml
More file actions
81 lines (76 loc) · 1.88 KB
/
Copy pathprek.toml
File metadata and controls
81 lines (76 loc) · 1.88 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
# 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
#:tombi toml-version = "v1.1.0"
#
# Simon Olofsson <simon@olofsson.de>
#
default_install_hook_types = [
"pre-commit",
"pre-push",
]
[[repos]]
repo = "builtin"
hooks = [
{ id = "check-added-large-files" },
{ id = "trailing-whitespace" },
{ id = "end-of-file-fixer" },
{ id = "check-toml" },
{ id = "check-vcs-permalinks" },
{ id = "check-yaml" },
{ id = "mixed-line-ending" },
{ id = "check-merge-conflict" },
{ id = "detect-private-key" },
{ id = "check-shebang-scripts-are-executable" },
{ id = "check-executables-have-shebangs" },
]
[[repos]]
repo = "https://github.com/rhysd/actionlint"
rev = "914e7df21a07ef503a81201c76d2b11c789d3fca" # frozen: v1.7.12
hooks = [
{ id = "actionlint" },
]
[[repos]]
repo = "https://github.com/gitleaks/gitleaks"
rev = "83d9cd684c87d95d656c1458ef04895a7f1cbd8e" # frozen: v8.30.1
hooks = [
{ id = "gitleaks" },
]
[[repos]]
repo = "local"
hooks = [
{
id = "fish-indent",
name = "format fish scripts",
entry = "fish_indent --write",
language = "system",
files = '\.fish$',
stages = ["pre-commit"],
},
{
id = "fish-indent-check",
name = "check fish formatting",
entry = "fish_indent --check",
language = "system",
files = '\.fish$',
stages = ["pre-push"],
},
{
id = "fish-syntax",
name = "validate fish scripts",
entry = "fish -n",
language = "system",
files = '\.fish$',
stages = ["pre-push"],
},
{
id = "ansible-syntax",
name = "validate ansible playbook",
entry = "ansible-playbook --syntax-check playbook.yaml",
language = "python",
additional_dependencies = ["ansible-core"],
pass_filenames = false,
files = '(playbook|tasks)\.yaml$',
stages = ["pre-push"],
},
]