-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathprek.toml
More file actions
41 lines (39 loc) · 698 Bytes
/
Copy pathprek.toml
File metadata and controls
41 lines (39 loc) · 698 Bytes
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
# 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
[[repos]]
repo = "https://github.com/pre-commit/pre-commit-hooks"
rev = "v6.0.0"
hooks = [
{ id = "trailing-whitespace" },
{ id = "check-json" }
]
[[repos]]
repo = "https://github.com/astral-sh/ruff-pre-commit"
rev = "v0.15.2"
hooks = [
{
id = "ruff",
args = ["--fix"],
types_or = [
"python",
"pyi"
]
},
{
id = "ruff",
args = [
"check",
"--select",
"I",
"--fix"
]
},
{
id = "ruff-format",
types_or = [
"python",
"pyi"
]
}
]