From 4519f9ffa8debc38ebc359beb70f2400251b72cf Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Thu, 3 Oct 2024 13:53:58 -0300 Subject: [PATCH] chore: Add 'types' field to pre-commit hooks for ruff check and format (#4006) --- .pre-commit-config.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ebca55ca15ab..42b3ae39bba5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,3 @@ -fail_fast: true repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.1.0 @@ -18,7 +17,9 @@ repos: name: ruff check language: system entry: bash -c "uv run ruff check" + types: [file, python] - id: ruff-format name: ruff format language: system - entry: bash -c "uv run ruff format" \ No newline at end of file + entry: bash -c "uv run ruff format" + types: [file, python]