Skip to content

Commit 0ea6236

Browse files
Update to use only-group
1 parent 3c285cd commit 0ea6236

1 file changed

Lines changed: 3 additions & 14 deletions

File tree

prek.toml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,11 @@
44
# rules implementing lint workflows. We do not use any remote
55
# workflow repos.
66

7-
# files = { glob = [
8-
# "tskit/**",
9-
# "benchmark/**",
10-
# "tests/**",
11-
# "_tskitmodule.c",
12-
# "*.toml",
13-
# "docs/**",
14-
# ]}
15-
167
exclude = { glob = ["c/subprojects/**"]}
178

189
[[repos]]
1910
repo = "builtin"
2011
hooks = [
21-
# { id = "trailing-whitespace" },
22-
# { id = "end-of-file-fixer" },
2312
{ id = "check-added-large-files" },
2413
{ id = "check-merge-conflict" },
2514
{ id = "mixed-line-ending" },
@@ -35,7 +24,7 @@ hooks = [
3524
id = "ruff-check",
3625
name = "ruff check",
3726
language = "system",
38-
entry = "uv run --project=python --group=lint ruff check --fix --force-exclude",
27+
entry = "uv run --project=python --only-group=lint ruff check --fix --force-exclude",
3928
types = ["python"],
4029
},
4130
]
@@ -47,7 +36,7 @@ hooks = [
4736
id = "ruff-format",
4837
name = "ruff format",
4938
language = "system",
50-
entry = "uv run --project=python --group=lint ruff format --force-exclude",
39+
entry = "uv run --project=python --only-group=lint ruff format --force-exclude",
5140
types = ["python"],
5241
},
5342
]
@@ -59,7 +48,7 @@ hooks = [
5948
id = "clang-format",
6049
name = "clang-format",
6150
language = "system",
62-
entry = "uv run --project=python --group=lint clang-format -i",
51+
entry = "uv run --project=python --only-group=lint clang-format -i",
6352
types = ["c"],
6453
verbose = true,
6554
},

0 commit comments

Comments
 (0)