# ABOUTME: Git hooks configuration using lefthook. # ABOUTME: Runs ruff linting/formatting and pytest before commits. pre-commit: parallel: true commands: ruff-check: glob: "**/*.py" run: ruff check src/ tests/ ruff-format: glob: "**/*.py" run: ruff format --check src/ tests/ pytest: glob: "**/*.py" run: pytest tests/ -q --tb=short