From da070e73b2bef10e8c6dce463f00097f7ce1d884 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 4 Jun 2020 13:43:35 +0930 Subject: [PATCH] pyln.proto.message.*: Add Makefile to do mypy checks. Signed-off-by: Rusty Russell --- contrib/pyln-proto/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/contrib/pyln-proto/Makefile b/contrib/pyln-proto/Makefile index 6d2579aca..6cd09e987 100644 --- a/contrib/pyln-proto/Makefile +++ b/contrib/pyln-proto/Makefile @@ -1,10 +1,13 @@ #! /usr/bin/make -default: check-source check - check: pytest -check-source: +check-source: check-flake8 check-mypy + +check-flake8: flake8 --ignore=E501,E731,W503 +# mypy . does not recurse. I have no idea why... +check-mypy: + mypy --ignore-missing-imports `find * -name '*.py'`