From 351e73224e72d44ef67a6f35714a540bdbde7797 Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Fri, 15 Nov 2024 23:02:03 -0500 Subject: [PATCH] build: add pyright pre-commit check --- .pre-commit-config.yaml | 4 ++++ pyproject.toml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 62d2243..3942f1b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,3 +13,7 @@ repos: hooks: - id: ruff - id: ruff-format + - repo: https://github.com/RobertCraigie/pyright-python + rev: v1.1.389 + hooks: + - id: pyright diff --git a/pyproject.toml b/pyproject.toml index 07dc7bb..a21a98f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,3 +24,7 @@ dev-dependencies = [ "pre-commit>=4.0.1", "ruff>=0.7.1", ] + +[tool.pyright] +venvPath = "." +venv = ".venv"