From 14ed761b643277deb64071f4be76a65ea0c31f85 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Sun, 30 Jun 2024 22:03:07 +0200 Subject: [PATCH] Add pyright to pre-commit --- .pre-commit-config.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.pre-commit-config.yml b/.pre-commit-config.yml index 5b52c6b..41e310f 100644 --- a/.pre-commit-config.yml +++ b/.pre-commit-config.yml @@ -32,3 +32,13 @@ repos: language: system types_or: [python, pyi] 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