mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
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 <rusty@rustcorp.com.au>
This commit is contained in:
parent
f0621cec0d
commit
25fcc4ddbf
5
Makefile
5
Makefile
@ -443,12 +443,15 @@ PYLN_PATH=$(shell pwd)/lightningd:$(PATH)
|
|||||||
check-pyln-%: $(BIN_PROGRAMS) $(PKGLIBEXEC_PROGRAMS) $(PLUGINS)
|
check-pyln-%: $(BIN_PROGRAMS) $(PKGLIBEXEC_PROGRAMS) $(PLUGINS)
|
||||||
@(cd contrib/$(shell echo $@ | cut -b 7-) && PATH=$(PYLN_PATH) PYTHONPATH=$(PYTHONPATH) $(MAKE) check)
|
@(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)
|
@# E501 line too long (N > 79 characters)
|
||||||
@# E731 do not assign a lambda expression, use a def
|
@# E731 do not assign a lambda expression, use a def
|
||||||
@# W503: line break before binary operator
|
@# W503: line break before binary operator
|
||||||
@flake8 --ignore=E501,E731,W503 ${PYSRC}
|
@flake8 --ignore=E501,E731,W503 ${PYSRC}
|
||||||
|
|
||||||
|
check-pytest-pyln-proto:
|
||||||
PATH=$(PYLN_PATH) PYTHONPATH=$(PYTHONPATH) $(PYTEST) contrib/pyln-proto/tests/
|
PATH=$(PYLN_PATH) PYTHONPATH=$(PYTHONPATH) $(PYTEST) contrib/pyln-proto/tests/
|
||||||
|
|
||||||
check-includes: check-src-includes check-hdr-includes
|
check-includes: check-src-includes check-hdr-includes
|
||||||
|
Loading…
Reference in New Issue
Block a user