forked from zaclys/searxng
[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>
This commit is contained in:
parent
173b744ef0
commit
6b0a896f01
16
Makefile
16
Makefile
|
@ -212,15 +212,15 @@ gecko.driver:
|
||||||
PHONY += test test.sh test.pylint test.pep8 test.unit test.coverage test.robot
|
PHONY += test test.sh test.pylint test.pep8 test.unit test.coverage test.robot
|
||||||
test: buildenv test.pylint test.pep8 test.unit gecko.driver test.robot
|
test: buildenv test.pylint test.pep8 test.unit gecko.driver test.robot
|
||||||
|
|
||||||
|
PYLINT_FILES=\
|
||||||
|
searx/preferences.py \
|
||||||
|
searx/testing.py \
|
||||||
|
searx/engines/gigablast.py \
|
||||||
|
searx/engines/deviantart.py \
|
||||||
|
searx/engines/digg.py
|
||||||
|
|
||||||
# TODO: balance linting with pylint
|
|
||||||
test.pylint: pyenvinstall
|
test.pylint: pyenvinstall
|
||||||
$(call cmd,pylint,\
|
$(call cmd,pylint,$(PYLINT_FILES))
|
||||||
searx/preferences.py \
|
|
||||||
searx/testing.py \
|
|
||||||
searx/engines/gigablast.py \
|
|
||||||
searx/engines/deviantart.py \
|
|
||||||
)
|
|
||||||
$(call cmd,pylint,\
|
$(call cmd,pylint,\
|
||||||
--disable=$(PYLINT_SEARX_DISABLE_OPTION) \
|
--disable=$(PYLINT_SEARX_DISABLE_OPTION) \
|
||||||
--additional-builtins=$(PYLINT_ADDITIONAL_BUILTINS_FOR_ENGINES) \
|
--additional-builtins=$(PYLINT_ADDITIONAL_BUILTINS_FOR_ENGINES) \
|
||||||
|
@ -249,7 +249,7 @@ test.sh:
|
||||||
|
|
||||||
test.pep8: pyenvinstall
|
test.pep8: pyenvinstall
|
||||||
@echo "TEST pycodestyle (formerly pep8)"
|
@echo "TEST pycodestyle (formerly pep8)"
|
||||||
$(Q)$(PY_ENV_ACT); pycodestyle --exclude='searx/static, searx/languages.py, searx/engines/gigablast.py, searx/engines/deviantart.py' \
|
$(Q)$(PY_ENV_ACT); pycodestyle --exclude='searx/static, searx/languages.py, $(foreach f,$(PYLINT_FILES),$(f),)' \
|
||||||
--max-line-length=120 --ignore "E117,E252,E402,E722,E741,W503,W504,W605" searx tests
|
--max-line-length=120 --ignore "E117,E252,E402,E722,E741,W503,W504,W605" searx tests
|
||||||
|
|
||||||
test.unit: pyenvinstall
|
test.unit: pyenvinstall
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
@stable no (HTML can change)
|
@stable no (HTML can change)
|
||||||
@parse url, title, content, publishedDate, thumbnail
|
@parse url, title, content, publishedDate, thumbnail
|
||||||
"""
|
"""
|
||||||
|
# pylint: disable=missing-function-docstring
|
||||||
|
|
||||||
import random
|
import random
|
||||||
import string
|
import string
|
||||||
|
|
Loading…
Reference in New Issue