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:
- 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"
entry: bash -c "uv run ruff format"
types: [file, python]