Skip to content

Commit 2030faf

Browse files
committed
🔧 Update pre-commit to use local Ruff instead of hook
1 parent e26ad67 commit 2030faf

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.pre-commit-config.yaml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,18 @@ repos:
1111
- --unsafe
1212
- id: end-of-file-fixer
1313
- id: trailing-whitespace
14-
- repo: https://github.com/astral-sh/ruff-pre-commit
15-
rev: v0.14.6
14+
- repo: local
1615
hooks:
17-
- id: ruff
18-
args:
19-
- --fix
20-
- id: ruff-format
16+
- id: local-ruff-check
17+
name: ruff check
18+
entry: uv run ruff check --force-exclude --fix --exit-non-zero-on-fix
19+
require_serial: true
20+
language: unsupported
21+
types: [python]
22+
23+
- id: local-ruff-format
24+
name: ruff format
25+
entry: uv run ruff format --force-exclude --exit-non-zero-on-format
26+
require_serial: true
27+
language: unsupported
28+
types: [python]

0 commit comments

Comments
 (0)