aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-07-03 22:56:41 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-07-03 22:56:41 +0200
commit316fb878b90dc26d1900663dee625f4f057d5c1d (patch)
treee670c561e9c57c3dc2731a48ab71c8249f470fe5
parentBetter title on module index. (diff)
downloadmuppet-strings-316fb878b90dc26d1900663dee625f4f057d5c1d.tar.gz
muppet-strings-316fb878b90dc26d1900663dee625f4f057d5c1d.tar.xz
Makefile: Also add pyright check.
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c7f5730..9c28578 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
-.PHONY: all output check test sphinx-apidoc documentation
+.PHONY: all output check test sphinx-apidoc documentation \
+ check_style check_type check_pyright
all: output
@@ -18,7 +19,10 @@ check_style:
check_type:
mypy -p muppet
-check: check_style check_type
+check_pyright:
+ pyright $(shell find muppet -type f -name '*.py')
+
+check: check_style check_type check_pyright
# TODO only require coverage if `python -m pytest -VV | grep pytest-cov` return true
PYTEST_FLAGS = --cov=muppet --cov-branch --cov-report=html