@@ -13,6 +13,8 @@ include utils/makefile.include
1313PYOBJECTS = searx
1414DOC = docs
1515PY_SETUP_EXTRAS ?= \[test\]
16+PYLINT_SEARX_DISABLE_OPTION := I,C,R,W0105,W0212,W0511,W0603,W0613,W0621,W0702,W0703,W1401
17+PYLINT_ADDITIONAL_BUILTINS_FOR_ENGINES := supported_languages,language_aliases
1618
1719include utils/makefile.python
1820include utils/makefile.sphinx
@@ -210,8 +212,8 @@ gecko.driver:
210212PHONY += test test.sh test.pylint test.pep8 test.unit test.coverage test.robot
211213test: buildenv test.pylint test.pep8 test.unit gecko.driver test.robot
212214
213−# TODO: balance linting with pylint
214215
216+# TODO: balance linting with pylint
215217test.pylint: pyenvinstall
216218 $(call cmd,pylint,\
217219 searx/preferences.py \
@@ -219,6 +221,16 @@ test.pylint: pyenvinstall
219221 searx/engines/gigablast.py \
220222 searx/engines/deviantart.py \
221223 )
224+ $(call cmd,pylint,\
225+ --disable=$(PYLINT_SEARX_DISABLE_OPTION) \
226+ --additional-builtins=$(PYLINT_ADDITIONAL_BUILTINS_FOR_ENGINES) \
227+ searx/engines \
228+ )
229+ $(call cmd,pylint,\
230+ --disable=$(PYLINT_SEARX_DISABLE_OPTION) \
231+ --ignore=searx/engines \
232+ searx tests \
233+ )
222234
223235# ignored rules:
224236# E402 module level import not at top of file