From fd4a36e777112ce9de9841316d2affd4494a3c5f Mon Sep 17 00:00:00 2001 From: practicalswift Date: Sat, 24 Feb 2018 19:02:42 +0100 Subject: [PATCH] Add "make check-python" --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e16e956cc..f7c47233f 100644 --- a/Makefile +++ b/Makefile @@ -241,7 +241,12 @@ check-markdown: check-spelling: @tools/check-spelling.sh -check-source: check-makefile check-source-bolt check-whitespace check-markdown check-spelling +check-python: + @# E501 line too long (N > 79 characters) + @# E731 do not assign a lambda expression, use a def + @git ls-files "*.py" | xargs flake8 --ignore=E501,E731 --exclude=contrib/pylightning/lightning/__init__.py + +check-source: check-makefile check-source-bolt check-whitespace check-markdown check-spelling check-python full-check: check check-source