feat: Add pre-commit hook for ruff (#3960)

Add pre-commit hook
This commit is contained in:
Christophe Bornet 2024-10-01 12:50:19 +02:00 committed by GitHub
commit b11207bef3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,3 +12,13 @@ repos:
args:
- --fix=lf
- id: trailing-whitespace
- repo: local
hooks:
- id: ruff-check
name: ruff check
language: system
entry: bash -c "uv run ruff check"
- id: ruff-format
name: ruff format
language: system
entry: bash -c "uv run ruff format"