From 096372030dd38f0868b7c55846fc920da5210c8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Wed, 12 Sep 2018 20:13:32 +0200 Subject: [PATCH] Makefile: Add typecheck target. --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1278ac4..4bfafc6 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: install install-lib phony test +.PHONY: install install-lib phony test typecheck WEECHAT_HOME ?= $(HOME)/.weechat PREFIX ?= $(WEECHAT_HOME) @@ -20,3 +20,6 @@ $(DESTDIR)$(PREFIX)/python/matrix/%.py: matrix/%.py phony test: python3 -m pytest python2 -m pytest + +typecheck: + mypy -p matrix --ignore-missing-imports --warn-redundant-casts