ci: Update pre-commit configuration to use ruff for linting and formatting (#5360)
chore: update pre-commit configuration to use ruff for linting and formatting
This commit is contained in:
parent
ba7380824c
commit
e25872b287
1 changed files with 7 additions and 9 deletions
|
|
@ -11,15 +11,13 @@ repos:
|
|||
args:
|
||||
- --fix=lf
|
||||
- id: trailing-whitespace
|
||||
- repo: local
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
rev: v0.8.3
|
||||
hooks:
|
||||
- id: ruff-check
|
||||
- id: ruff
|
||||
name: ruff check
|
||||
language: system
|
||||
entry: bash -c "uv run ruff check"
|
||||
types: [file, python]
|
||||
types_or: [python, pyi]
|
||||
args: [--fix]
|
||||
- id: ruff-format
|
||||
name: ruff format
|
||||
language: system
|
||||
entry: bash -c "uv run ruff format"
|
||||
types: [file, python]
|
||||
types_or: [python, pyi]
|
||||
args: [--config pyproject.toml]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue