add pre-commit hooks

Fixes #945
This commit is contained in:
Aleix Conchillo Flaqué
2025-01-15 13:44:21 -08:00
parent bb4766455d
commit f78520f7d0
5 changed files with 23 additions and 3 deletions

7
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,7 @@
repos:
- repo: local
hooks:
- id: ruff-format-hook
name: Check ruff formatting
entry: sh scripts/pre-commit.sh
language: system