chore(pre-commit): add ruff hooks

This commit is contained in:
2026-05-03 18:18:42 +08:00
parent ab68f019c5
commit c54a22ece5
3 changed files with 178 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
repos:
- repo: local
hooks:
- id: ruff-check
name: ruff check
entry: uv run ruff check
language: system
types_or: [python, pyi]
- id: ruff-format
name: ruff format
entry: uv run ruff format
language: system
types_or: [python, pyi]