Makefile: Add typecheck target.

This commit is contained in:
Damir Jelić 2018-09-12 20:13:32 +02:00
parent eab12eed08
commit 096372030d

View file

@ -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