mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 12:03:31 +01:00
This commit adds support for static typechecking with mypy.
Notable additions:
- A new target "check" which does the type checking
- Py-mods.mk, meant to be included from a directory containing python modules
in subdirectories, but not being a python module itself. It makes the all
target depend on check only if PY_RUN_CHECK_AFTER_BUILD is defined and
true. That's because pypy is under heavy development, and the Ubuntu 18.04
version is too old to work for lots of the code.
Signed-off-by: Jan Lindemann <jan@janware.com>
14 lines
258 B
Makefile
14 lines
258 B
Makefile
include $(JWBDIR)/make/defs.mk
|
|
include $(JWBDIR)/make/py-defs.mk
|
|
include $(JWBDIR)/make/dirs.mk
|
|
include $(JWBDIR)/make/dev-utils.mk
|
|
include $(JWBDIR)/make/py-rules.mk
|
|
|
|
all:
|
|
install:
|
|
clean:
|
|
distclean:
|
|
|
|
ifeq ($(PY_RUN_CHECK_AFTER_BUILD),true)
|
|
all: check
|
|
endif
|