From: Marco Varlese Date: Sun, 25 Feb 2018 10:28:52 +0000 (+0100) Subject: Python: addressing PEP8 deprecation X-Git-Tag: v18.04-rc1~252 X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=commitdiff_plain;h=767fcb674287c62418946597d3300355d1e8528b 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 --- 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 \"*******************************************************************\" &&\