diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 42b3ae39b..7eafd54eb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,15 +11,13 @@ repos: args: - --fix=lf - id: trailing-whitespace - - repo: local + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.8.3 hooks: - - id: ruff-check + - id: ruff name: ruff check - language: system - entry: bash -c "uv run ruff check" - types: [file, python] + types_or: [python, pyi] + args: [--fix] - id: ruff-format - name: ruff format - language: system - entry: bash -c "uv run ruff format" - types: [file, python] + types_or: [python, pyi] + args: [--config pyproject.toml]