From 8ee764a43e5da6a76d43ee91c200ad525b5a4bc8 Mon Sep 17 00:00:00 2001 From: Sasha Lopoukhine Date: Thu, 20 Jul 2023 11:12:36 +0100 Subject: [PATCH 1/2] misc: make pyright only runs on .py files --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0afc257b09..afe89c5ef0 100644 --- a/Makefile +++ b/Makefile @@ -54,9 +54,12 @@ precommit-install: precommit: pre-commit run --all + + + # run pyright on all files in the current git commit pyright: - pyright $(shell git diff --staged --name-only) + pyright $(shell git diff --staged --name-only -- '*.py') # run black on all files currently staged black: From a30f39501163fe8b4a5d27c957f4eaa945fb3311 Mon Sep 17 00:00:00 2001 From: Sasha Lopoukhine Date: Thu, 20 Jul 2023 13:11:19 +0100 Subject: [PATCH 2/2] whitespace --- Makefile | 3 --- 1 file changed, 3 deletions(-) diff --git a/Makefile b/Makefile index afe89c5ef0..af9e15cdb3 100644 --- a/Makefile +++ b/Makefile @@ -54,9 +54,6 @@ precommit-install: precommit: pre-commit run --all - - - # run pyright on all files in the current git commit pyright: pyright $(shell git diff --staged --name-only -- '*.py')