From 407282e7762dd753abfbb4a68538df4657c6219c Mon Sep 17 00:00:00 2001 From: Attila Szakacs Date: Thu, 4 May 2023 13:33:00 +0200 Subject: [PATCH] python: use pycodestyle instead of pep8 Their warning: pep8 has been renamed to pycodestyle (GitHub issue #466) Use of the pep8 tool will be removed in a future release. Please install and use `pycodestyle` instead. $ pip install pycodestyle $ pycodestyle ... Signed-off-by: Attila Szakacs --- dev-requirements.txt | 2 +- modules/python-modules/Makefile.am | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dev-requirements.txt b/dev-requirements.txt index fc8a15194a..fb18d3ec10 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,6 +1,6 @@ -r requirements.txt -pep8 +pycodestyle isort pylint astroid diff --git a/modules/python-modules/Makefile.am b/modules/python-modules/Makefile.am index 9dd69d32ea..bc17f435aa 100644 --- a/modules/python-modules/Makefile.am +++ b/modules/python-modules/Makefile.am @@ -106,10 +106,10 @@ pymodules-clean: pymodules-unit: python-venv $(PYTHON_VENV) -m pytest --showlocals --verbosity=3 $(PYMODULES_SRCDIR) -W ignore::UserWarning -pymodules-checks: pymodules-unit pymodules-pep8 pymodules-pylint +pymodules-checks: pymodules-unit pymodules-pycodestyle pymodules-pylint -pymodules-pep8: python-venv - $(PYTHON_VENV) -m pep8 --ignore=E501 $(PYMODULES_SRCDIR)/$(PYMODULES_ROOT_MODULE) +pymodules-pycodestyle: python-venv + $(PYTHON_VENV) -m pycodestyle --ignore=E501 $(PYMODULES_SRCDIR)/$(PYMODULES_ROOT_MODULE) pymodules-pylint: python-venv $(PYTHON_VENV) -m pylint -r n --rcfile=$(PYMODULES_SRCDIR)/pylintrc $(PYMODULES_SRCDIR)/$(PYMODULES_ROOT_MODULE)