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