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:
Gabriel Luiz Freitas Almeida 2024-12-19 12:24:01 -03:00 committed by GitHub
commit e25872b287
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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]