Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

make test.pylint: do not run pylint checks in py2

Markus Heiserfc89c698bd81
diff --git a/Makefile b/Makefile
index 7d5282802..abd0eddb8 100644
--- a/Makefile
+++ b/Makefile
@@ -186,12 +186,17 @@ PHONY += test test.pylint test.pep8 test.unit test.coverage test.robot
test: buildenv test.pylint test.pep8 test.unit gecko.driver test.robot
+ifeq ($(PY),2)
+test.pylint:
+ @echo "LINT skip liniting py2"
+else
# TODO: balance linting with pylint
test.pylint: pyenvinstall
$(call cmd,pylint,\
searx/preferences.py \
searx/testing.py \
)
+endif
# ignored rules:
# E402 module level import not at top of file