From 96f51aad612fcb5e823e34eb32eface333489a62 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 29 Jun 2025 01:52:41 -0400 Subject: [PATCH] Add pyright pre-commit hook --- .pre-commit-config.yaml | 8 +++++++- pyproject.toml | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 38afa67..c817f29 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,11 +1,17 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.11.13 + rev: v0.12.1 hooks: - id: ruff-check args: [--fix] - id: ruff-format + - repo: https://github.com/doublify/pre-commit-clang-format rev: 62302476d0da01515660132d76902359bed0f782 hooks: - id: clang-format + +- repo: https://github.com/RobertCraigie/pyright-python + rev: v1.1.402 + hooks: + - id: pyright diff --git a/pyproject.toml b/pyproject.toml index 3142aa3..56a5ae6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -73,6 +73,7 @@ optional = true [tool.pyright] pythonVersion = "3.9" +typeCheckingMode = "standard" venvPath = "." venv = ".venv"