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:
|
args:
|
||||||
- --fix=lf
|
- --fix=lf
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: local
|
||||||
rev: v0.12.2
|
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
name: ruff check
|
name: ruff check
|
||||||
|
entry: uv run ruff check
|
||||||
|
language: system
|
||||||
types_or: [python, pyi]
|
types_or: [python, pyi]
|
||||||
args: [--fix]
|
args: [--fix]
|
||||||
- id: ruff-format
|
- id: ruff-format
|
||||||
|
name: ruff format
|
||||||
|
entry: uv run ruff format
|
||||||
|
language: system
|
||||||
types_or: [python, pyi]
|
types_or: [python, pyi]
|
||||||
args: [--config, pyproject.toml]
|
args: [--config, pyproject.toml]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue