Skip to content

Commit 6a517a3

Browse files
committed
replace pre-commit with prek
1 parent 3b890de commit 6a517a3

3 files changed

Lines changed: 25 additions & 8 deletions

File tree

.pre-commit-config.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.

prek.toml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[[repos]]
2+
repo = "https://github.com/pre-commit/pre-commit-hooks"
3+
rev = "v6.0.0"
4+
hooks = [
5+
{ id = "check-ast" },
6+
{ id = "check-yaml" },
7+
{ id = "check-toml" },
8+
{ id = "check-json" },
9+
{ id = "end-of-file-fixer" },
10+
{ id = "mixed-line-ending" },
11+
{ id = "trailing-whitespace" },
12+
{ id = "detect-private-key" },
13+
{ id = "check-added-large-files" },
14+
{ id = "check-merge-conflict" },
15+
{ id = "no-commit-to-branch", args = ["--branch", "master", "--branch", "sit", "--branch", "develop"] },
16+
]
17+
18+
[[repos]]
19+
repo = "https://github.com/astral-sh/ruff-pre-commit"
20+
rev = "v0.15.4"
21+
hooks = [
22+
{ id = "ruff-check", args = ["--fix", "--extend-select=I"] },
23+
{ id = "ruff-format" },
24+
]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dev = [
2626
"pytest>=8.0",
2727
"pytest-cov",
2828
"ruff",
29-
"pre-commit",
29+
"prek",
3030
"tox>=4.0",
3131
]
3232

0 commit comments

Comments
 (0)