@@ -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