chore: Add 'types' field to pre-commit hooks for ruff check and format (#4006)
This commit is contained in:
parent
ed7ec6a332
commit
4519f9ffa8
1 changed files with 3 additions and 2 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue