From 0112bbbeb73a9964769258420004c03b85e5290d Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Fri, 30 Jul 2021 16:55:42 +0200 Subject: [PATCH] pyln: Add E741 as excluded flake warnings This is the ambiguous variable name warning which newer versions will complain about. --- contrib/pyln-client/Makefile | 2 +- contrib/pyln-proto/Makefile | 2 +- contrib/pyln-spec/Makefile | 2 +- contrib/pyln-testing/Makefile | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/pyln-client/Makefile b/contrib/pyln-client/Makefile index d44b21c60..6f90a8a28 100644 --- a/contrib/pyln-client/Makefile +++ b/contrib/pyln-client/Makefile @@ -19,7 +19,7 @@ check: check-source check-pytest check-source: check-flake8 check-mypy check-flake8: - flake8 --ignore=E501,E731,W503 + flake8 --ignore=E501,E731,W503,E741 check-pytest: pytest tests diff --git a/contrib/pyln-proto/Makefile b/contrib/pyln-proto/Makefile index 6b990f19f..ba79c3b43 100644 --- a/contrib/pyln-proto/Makefile +++ b/contrib/pyln-proto/Makefile @@ -19,7 +19,7 @@ check: check-source check-pytest check-source: check-flake8 check-mypy check-flake8: - flake8 --ignore=E501,E731,W503 + flake8 --ignore=E501,E731,W503,E741 check-pytest: pytest tests diff --git a/contrib/pyln-spec/Makefile b/contrib/pyln-spec/Makefile index 053b52f49..ba856b8cf 100755 --- a/contrib/pyln-spec/Makefile +++ b/contrib/pyln-spec/Makefile @@ -24,7 +24,7 @@ check-source-flake8: $(DIRS:%=check-source-flake8-%) check-source-mypy: $(DIRS:%=check-source-mypy-%) check-source-flake8-%: - cd $* && flake8 --ignore=E501,E731,W503 --exclude=text.py + cd $* && flake8 --ignore=E501,E731,W503,E741 --exclude=text.py # mypy . does not recurse. I have no idea why... check-source-mypy-%: diff --git a/contrib/pyln-testing/Makefile b/contrib/pyln-testing/Makefile index 3ad8059ba..91521bdcf 100644 --- a/contrib/pyln-testing/Makefile +++ b/contrib/pyln-testing/Makefile @@ -19,7 +19,7 @@ check: check-source check-pytest check-source: check-flake8 check-mypy check-flake8: - flake8 --ignore=E501,E731,W503 + flake8 --ignore=E501,E731,W503,E741 check-pytest: pytest tests