From a7ca89b18e861ed9a6e5f2a1af61aeb2742fd0a5 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Thu, 7 Oct 2021 14:40:57 +0200 Subject: [scripts/Makefile] improve check-pylint and add check-mypy --- scripts/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/Makefile b/scripts/Makefile index d866ac4e..9875e834 100644 --- a/scripts/Makefile +++ b/scripts/Makefile @@ -2,7 +2,7 @@ PYTHONFILES := $(wildcard *.py) -check: check-pylint check-format +check: check-pylint check-format check-mypy format: yapf -i $(PYTHONFILES) @@ -11,4 +11,7 @@ check-format: yapf -d $(PYTHONFILES) check-pylint: - pylint --rcfile=.pylint.rc -j 0 $(PYTHONFILES) || ./tools/check-pylint $$? + pylint --generated-members=cv2.* --rcfile=.pylint.rc -j 0 $(PYTHONFILES) || ./tools/check-pylint $$? + +check-mypy: + mypy $(PYTHONFILES) -- cgit v1.2.3