build: switch to basedpyright & update pre-commit hooks

This commit is contained in:
Mike A.
2025-08-04 14:32:00 +02:00
parent 55c111073d
commit 78cd3b4600
3 changed files with 71 additions and 49 deletions

View File

@@ -1,11 +1,31 @@
default_install_hook_types:
- pre-commit
- post-checkout
- post-merge
- post-rewrite
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.13
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.8.4
hooks:
- id: ruff
args: ["--fix"]
- id: ruff-format
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.381
- id: uv-sync
args: ["--all-groups"]
- repo: local
hooks:
- id: pyright
- id: uv-basedpyright
name: Run basedpyright via uv
entry: uv run basedpyright
language: system
types: [python]
- id: uv-ruff-check
name: Run ruff check via uv
entry: uv run ruff check --fix
language: system
types: [python]
- id: uv-ruff-fmt
name: Run ruff format via uv
entry: uv run ruff format
language: system
types: [python]