Skip to content

Commit 70791b0

Browse files
committed
pyln.proto.message.*: Add Makefile to do mypy checks.
Signed-off-by: Rusty Russell <[email protected]>
1 parent 691f483 commit 70791b0

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

contrib/pyln-proto/Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
#! /usr/bin/make
22

3-
default: check-source check
4-
53
check:
64
pytest
75

8-
check-source:
6+
check-source: check-flake8 check-mypy
7+
8+
check-flake8:
99
flake8 --ignore=E501,E731,W503
1010

11+
# mypy . does not recurse. I have no idea why...
12+
check-mypy:
13+
mypy --ignore-missing-imports `find * -name '*.py'`
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#! /usr/bin/make
2+
PYTHONFILES := $(shell find * -name '*.py')
3+
4+
check:
5+
mypy --ignore-missing-imports $(PYTHONFILES)
26

37
refresh:
48
for d in bolt*; do $(MAKE) -C $$d; done

0 commit comments

Comments
 (0)