From d17ac55a9b46969961bdbbb76c1b987d3847799f Mon Sep 17 00:00:00 2001 From: JackEAllen Date: Fri, 1 Nov 2024 11:54:08 +0000 Subject: [PATCH] Update pre-commit to add pyright check --- .pre-commit-config.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4d06dba0bb5..23b94ebf94c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,7 +23,16 @@ repos: files: ^mantidimaging/ args: [--ignore-missing-imports] additional_dependencies: [types-docutils, types-PyYAML, types-requests] +- repo: local + hooks: + - id: pyright + name: pyright + description: Checks that all files paas pyright checks + entry: pyright + language: system + types: [python] - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.3.3 hooks: - id: ruff +