on master help sign in
[mod] digg - pylint searx/engines/digg.py

Eliminate redundant file names which are tested by test.pylint and ignored by test.pep8 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>

commit6b0a896f01eb0c59a5ce8d46c18b3549f0007901 authorMarkus Heiser <markus.heiser@darmarit.de> dateSun 22 Nov 2020, 11:37 (6 years ago) parent173b744
2 files changed+9−8
Makefile+8−8 searx/engines/digg.py+1
Makefile+8−8
@@ -212,15 +212,15 @@ gecko.driver:
212212PHONY += test test.sh test.pylint test.pep8 test.unit test.coverage test.robot
213213test: buildenv test.pylint test.pep8 test.unit gecko.driver test.robot
214214
215+PYLINT_FILES=\
216+ searx/preferences.py \
217+ searx/testing.py \
218+ searx/engines/gigablast.py \
219+ searx/engines/deviantart.py \
220+ searx/engines/digg.py
215221
216−# TODO: balance linting with pylint
217222test.pylint: pyenvinstall
218− $(call cmd,pylint,\
219− searx/preferences.py \
220− searx/testing.py \
221− searx/engines/gigablast.py \
222− searx/engines/deviantart.py \
223− )
223+ $(call cmd,pylint,$(PYLINT_FILES))
224224 $(call cmd,pylint,\
225225 --disable=$(PYLINT_SEARX_DISABLE_OPTION) \
226226 --additional-builtins=$(PYLINT_ADDITIONAL_BUILTINS_FOR_ENGINES) \
@@ -249,7 +249,7 @@ test.sh:
249249
250250test.pep8: pyenvinstall
251251 @echo "TEST pycodestyle (formerly pep8)"
252− $(Q)$(PY_ENV_ACT); pycodestyle --exclude='searx/static, searx/languages.py, searx/engines/gigablast.py, searx/engines/deviantart.py' \
252+ $(Q)$(PY_ENV_ACT); pycodestyle --exclude='searx/static, searx/languages.py, $(foreach f,$(PYLINT_FILES),$(f),)' \
253253 --max-line-length=120 --ignore "E117,E252,E402,E722,E741,W503,W504,W605" searx tests
254254
255255test.unit: pyenvinstall
searx/engines/digg.py+1
@@ -9,6 +9,7 @@
99 @stable no (HTML can change)
1010 @parse url, title, content, publishedDate, thumbnail
1111"""
12+# pylint: disable=missing-function-docstring
1213
1314import random
1415import string