From 25fcc4ddbf67131856bad497bb9ad895163f3bea Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 25 Nov 2020 10:48:03 +1030 Subject: [PATCH] Makefile: separate check-python targets. There's a 60 second delay in one of the contrib tests, and I just want to run flake8 on my alterations. Signed-off-by: Rusty Russell --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5de07fe19..1d843c029 100644 --- a/Makefile +++ b/Makefile @@ -443,12 +443,15 @@ PYLN_PATH=$(shell pwd)/lightningd:$(PATH) check-pyln-%: $(BIN_PROGRAMS) $(PKGLIBEXEC_PROGRAMS) $(PLUGINS) @(cd contrib/$(shell echo $@ | cut -b 7-) && PATH=$(PYLN_PATH) PYTHONPATH=$(PYTHONPATH) $(MAKE) check) -check-python: check-pyln-client check-pyln-testing +check-python: check-python-flake8 check-pytest-pyln-proto check-pyln-client check-pyln-testing + +check-python-flake8: @# E501 line too long (N > 79 characters) @# E731 do not assign a lambda expression, use a def @# W503: line break before binary operator @flake8 --ignore=E501,E731,W503 ${PYSRC} +check-pytest-pyln-proto: PATH=$(PYLN_PATH) PYTHONPATH=$(PYTHONPATH) $(PYTEST) contrib/pyln-proto/tests/ check-includes: check-src-includes check-hdr-includes