chore: Add 'types' field to pre-commit hooks for ruff check and format (#4006)

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-10-03 13:53:58 -03:00 • committed by GitHub
commit 4519f9ffa8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,3 @@
fail_fast: true
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0 rev: v4.1.0
@ -18,7 +17,9 @@ repos:
name: ruff check name: ruff check
language: system language: system
entry: bash -c "uv run ruff check" entry: bash -c "uv run ruff check"
types: [file, python]
- id: ruff-format - id: ruff-format
name: ruff format name: ruff format
language: system language: system
entry: bash -c "uv run ruff format" entry: bash -c "uv run ruff format"
types: [file, python]