From 4cf28ef582f045faf296982e8b2f14f25ff10c94 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Sun, 26 Jul 2026 12:52:28 +1000 Subject: [PATCH] chore: update pre-commit to use ruff with auto-fix - Add astral-sh/ruff-pre-commit as official ruff hook - Enable ruff with --fix for automatic linting fixes - Add ruff-format for code formatting - Keep pytest hook for test running Now pre-commit will automatically fix linting issues and run tests before commits. --- .pre-commit-config.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0c5f1f1..32d2895 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,13 +1,13 @@ repos: + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.4.10 + hooks: + - id: ruff + args: [--fix] + - id: ruff-format + - repo: local hooks: - - id: ruff-check - name: ruff check - entry: ruff check - language: system - types: [python] - stages: [commit] - - id: pytest name: pytest entry: pytest