diff --git a/Makefile b/Makefile index 0afc257b09..af9e15cdb3 100644 --- a/Makefile +++ b/Makefile @@ -56,7 +56,7 @@ precommit: # 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: