-
-
Notifications
You must be signed in to change notification settings - Fork 236
Expand file tree
/
Copy pathprek.toml
More file actions
86 lines (78 loc) · 2.05 KB
/
Copy pathprek.toml
File metadata and controls
86 lines (78 loc) · 2.05 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
# 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"
fail_fast = true
default_install_hook_types = ["pre-push"]
exclude = { glob = "**/snapshots/**" }
[update]
cooldown_days = 7
freeze = true
[[repos]]
repo = "builtin"
hooks = [
{ id = "trailing-whitespace", exclude = { glob = "CHANGELOG.md" } },
{ id = "mixed-line-ending" },
{ id = "check-yaml" },
{ id = "check-toml" },
{ id = "end-of-file-fixer" },
]
[[repos]]
repo = "https://github.com/crate-ci/typos"
rev = "8a48f81b6c64dcfea44b3633223084c4be58ac5f" # frozen: v1.49.0
hooks = [{ id = "typos" }]
[[repos]]
repo = "https://github.com/executablebooks/mdformat"
rev = "82912cdaea4fb830f751504486a7879c70526547" # frozen: 1.0.0
hooks = [
{
id = "mdformat",
language = "python",
args = ["--number", "--compact-tables", "--align-semantic-breaks-in-lists"],
additional_dependencies = [
"mdformat-frontmatter==2.1.2",
"mdformat-mkdocs==5.2.1",
"mdformat-simple-breaks==0.1.0",
]
}
]
[[repos]]
repo = "https://github.com/python-jsonschema/check-jsonschema"
rev = "12e63946db2c5cfcc9030fac21c3883ba88c6ed8" # frozen: 0.38.0
hooks = [
{
id = "check-metaschema",
files = { glob = "prek.schema.json" },
},
{ id = "check-github-workflows" },
{
id = "check-renovate",
additional_dependencies = ["json5"],
}
]
[[repos]]
repo = "https://github.com/tombi-toml/tombi-pre-commit"
rev = "dd68bbd8cdd8891c942fb6f33a6e87a477b2c375" # frozen: v1.4.1
hooks = [
{ id = "tombi-format", args = ["--offline"], files = '\.toml$' },
]
[[repos]]
repo = "local"
hooks = [
{
id = "cargo-fmt",
name = "cargo fmt",
entry = "cargo fmt --",
language = "system",
types = ["rust"],
pass_filenames = false,
},
{
id = "cargo-clippy",
name = "cargo clippy",
language = "system",
types = ["rust"],
pass_filenames = false,
entry = "cargo clippy --all-targets --all-features -- -D warnings",
}
]