From 767fcb674287c62418946597d3300355d1e8528b Mon Sep 17 00:00:00 2001 From: Marco Varlese Date: Sun, 25 Feb 2018 11:28:52 +0100 Subject: [PATCH] Python: addressing PEP8 deprecation PEP8 has been deprecated and python users are being asked to migrate to pycodestyle. Change-Id: I52d5f7b2bf72156216a9966e8322ec58763f24d4 Signed-off-by: Marco Varlese --- test/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Makefile b/test/Makefile index 3bd8bd00a3b..712dab07bde 100644 --- a/test/Makefile +++ b/test/Makefile @@ -193,9 +193,9 @@ wipe-cov: wipe .PHONY: checkstyle checkstyle: verify-python-path @virtualenv $(PYTHON_VENV_PATH) -p $(PYTHON_INTERP) - @bash -c "source $(PYTHON_VENV_PATH)/bin/activate && pip install pep8" + @bash -c "source $(PYTHON_VENV_PATH)/bin/activate && pip install pycodestyle" @bash -c "source $(PYTHON_VENV_PATH)/bin/activate &&\ - pep8 --show-source -v $(WS_ROOT)/test/*.py ||\ + pycodestyle --show-source --ignore=E126,E241,E226,E305,E704,E741,E722 -v $(WS_ROOT)/test/*.py ||\ (echo \"*******************************************************************\" &&\ echo \"* Test framework PEP8 compliance check FAILED \" &&\ echo \"*******************************************************************\" &&\ -- 2.16.6