Skip to content

Commit 2f0f4c8

Browse files
committed
⚡️ Replace pre-commit with lefthook for faster git hooks
1 parent 41a09e1 commit 2f0f4c8

2 files changed

Lines changed: 20 additions & 13 deletions

File tree

.pre-commit-config.yaml

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

lefthook.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
pre-commit:
2+
parallel: true
3+
commands:
4+
ruff-check:
5+
run: uv run ruff check --fix {all_files}
6+
glob: "*.py"
7+
ruff-format:
8+
run: uv run ruff format {all_files}
9+
glob: "*.py"
10+
check-versions-match:
11+
run: ./check-versions-match.py
12+
stage_fixed: true
13+
14+
pre-push:
15+
commands:
16+
ruff-check:
17+
run: uv run ruff check {all_files}
18+
glob: "*.py"
19+
check-versions-match:
20+
run: ./check-versions-match.py

0 commit comments

Comments
 (0)