diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 861265153..bf1c05b75 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,13 +11,17 @@ repos: args: - --fix=lf - id: trailing-whitespace - - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.12.2 + - repo: local hooks: - id: ruff name: ruff check + entry: uv run ruff check + language: system types_or: [python, pyi] args: [--fix] - id: ruff-format + name: ruff format + entry: uv run ruff format + language: system types_or: [python, pyi] args: [--config, pyproject.toml]