Add pyright to pre-commit

This commit is contained in:
ItsDrike 2024-06-30 22:03:07 +02:00
parent 479a46777e
commit 14ed761b64
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0

View file

@ -32,3 +32,13 @@ repos:
language: system
types_or: [python, pyi]
require_serial: true
- repo: local
hooks:
- id: pyright
name: Pyright
description: Run pyright type checker
entry: poetry run pyright
language: system
types: [python]
pass_filenames: false # pyright runs for the entire project, it can't run for single files