From 3dea5eada07e3aac229d1045f0b9776ae29185de Mon Sep 17 00:00:00 2001 From: rachmadaniHaryono Date: Fri, 6 Nov 2020 08:26:31 +0800 Subject: [PATCH 1/3] chg: dev: pep8 to pycodestyle --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index c94d4af3f..d0d1ecc95 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,7 +1,7 @@ mock==2.0.0 nose2[coverage_plugin]==0.9.2 cov-core==1.15.0 -pep8==1.7.0 +pycodestyle==2.6.0 pylint==2.4.4 plone.testing==5.0.0 splinter==0.11.0 From d422f60529e605f6226ae0e4101bae96cae4efd6 Mon Sep 17 00:00:00 2001 From: rachmadaniHaryono Date: Fri, 6 Nov 2020 08:40:21 +0800 Subject: [PATCH 2/3] chg: test: Makefile pep8 test --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2eeff8535..d2f98b935 100644 --- a/Makefile +++ b/Makefile @@ -235,8 +235,8 @@ test.sh: shellcheck -x .config.sh test.pep8: pyenvinstall - @echo "TEST pep8" - $(Q)$(PY_ENV_ACT); pep8 --exclude='searx/static, searx/languages.py, searx/engines/gigablast.py' \ + @echo "TEST pycodestyle (formerly pep8)" + $(Q)$(PY_ENV_ACT); pycodestyle --exclude='searx/static, searx/languages.py, searx/engines/gigablast.py' \ --max-line-length=120 --ignore "E402,W503" searx tests test.unit: pyenvinstall From 5d015b58f7437d4974d9b073f4b041f8d7956a4b Mon Sep 17 00:00:00 2001 From: rachmadaniHaryono Date: Fri, 6 Nov 2020 18:54:53 +0800 Subject: [PATCH 3/3] new: test: ignored warning and errors --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d2f98b935..7bd0d8662 100644 --- a/Makefile +++ b/Makefile @@ -237,7 +237,7 @@ test.sh: test.pep8: pyenvinstall @echo "TEST pycodestyle (formerly pep8)" $(Q)$(PY_ENV_ACT); pycodestyle --exclude='searx/static, searx/languages.py, searx/engines/gigablast.py' \ - --max-line-length=120 --ignore "E402,W503" searx tests + --max-line-length=120 --ignore "E117,E252,E402,E722,E741,W503,W504,W605" searx tests test.unit: pyenvinstall @echo "TEST tests/unit"