aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMarco Varlese <marco.varlese@suse.com>2018-02-25 11:28:52 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2018-02-26 12:05:10 +0000
commit767fcb674287c62418946597d3300355d1e8528b (patch)
tree06d24024455123ba742cb11725143351ade8634f /test
parentcbcc84ba6684868996eccd1d94e445eb6868c54a (diff)
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 <marco.varlese@suse.com>
Diffstat (limited to 'test')
-rw-r--r--test/Makefile4
1 files 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 \"*******************************************************************\" &&\