chore: update pre-commit configuration to use local ruff hooks (#9048)
This commit is contained in:
parent
1f6d10430d
commit
d1b3b99dcb
1 changed files with 6 additions and 2 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue