Add pyright to pre-commit
This commit is contained in:
parent
479a46777e
commit
14ed761b64
|
@ -32,3 +32,13 @@ repos:
|
||||||
language: system
|
language: system
|
||||||
types_or: [python, pyi]
|
types_or: [python, pyi]
|
||||||
require_serial: true
|
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
|
||||||
|
|
Loading…
Reference in a new issue