build: add pyright pre-commit check

This commit is contained in:
Marc 2024-11-15 23:02:03 -05:00
parent b5ab054d74
commit 351e73224e
Signed by: marc
GPG key ID: 048E042F22B5DC79
2 changed files with 8 additions and 0 deletions

View file

@ -13,3 +13,7 @@ repos:
hooks: hooks:
- id: ruff - id: ruff
- id: ruff-format - id: ruff-format
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.389
hooks:
- id: pyright

View file

@ -24,3 +24,7 @@ dev-dependencies = [
"pre-commit>=4.0.1", "pre-commit>=4.0.1",
"ruff>=0.7.1", "ruff>=0.7.1",
] ]
[tool.pyright]
venvPath = "."
venv = ".venv"