mirror of
https://github.com/searxng/searxng.git
synced 2024-08-20 13:21:35 +02:00
Merge pull request #31 from return42/mod-pylint
[pylint] get PYLINT_FILES from tag '# lint: pylint'
This commit is contained in:
commit
9b482e8fcc
41
manage
41
manage
@ -17,31 +17,17 @@ NPM_PACKAGES="less@2.7 less-plugin-clean-css grunt-cli"
|
|||||||
GECKODRIVER_VERSION="v0.28.0"
|
GECKODRIVER_VERSION="v0.28.0"
|
||||||
# SPHINXOPTS=
|
# SPHINXOPTS=
|
||||||
|
|
||||||
# These py files are linted by test.pylint(), all other files are linted by
|
pylint.FILES() {
|
||||||
# test.pep8()
|
|
||||||
PYLINT_FILES=(
|
# List files tagged by comment:
|
||||||
searx/preferences.py
|
#
|
||||||
searx/testing.py
|
# # lint: pylint
|
||||||
searx/engines/gigablast.py
|
#
|
||||||
searx/engines/deviantart.py
|
# These py files are linted by test.pylint(), all other files are linted by
|
||||||
searx/engines/digg.py
|
# test.pep8()
|
||||||
searx/engines/google.py
|
|
||||||
searx/engines/google_news.py
|
grep -l -r --include \*.py '^#[[:blank:]]*lint:[[:blank:]]*pylint' searx searx_extra tests
|
||||||
searx/engines/google_videos.py
|
}
|
||||||
searx/engines/google_images.py
|
|
||||||
searx/engines/mediathekviewweb.py
|
|
||||||
searx/engines/meilisearch.py
|
|
||||||
searx/engines/solidtorrents.py
|
|
||||||
searx/engines/solr.py
|
|
||||||
searx/engines/springer.py
|
|
||||||
searx/engines/google_scholar.py
|
|
||||||
searx/engines/yahoo_news.py
|
|
||||||
searx/engines/apkmirror.py
|
|
||||||
searx/engines/artic.py
|
|
||||||
searx/engines/core.py
|
|
||||||
searx_extra/update/update_external_bangs.py
|
|
||||||
searx/metrics/__init__.py
|
|
||||||
)
|
|
||||||
|
|
||||||
PYLINT_SEARX_DISABLE_OPTION="\
|
PYLINT_SEARX_DISABLE_OPTION="\
|
||||||
I,C,R,\
|
I,C,R,\
|
||||||
@ -473,6 +459,11 @@ themes.simple() {
|
|||||||
dump_return $?
|
dump_return $?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PYLINT_FILES=()
|
||||||
|
while IFS= read -r line; do
|
||||||
|
PYLINT_FILES+=("$line")
|
||||||
|
done <<< $(pylint.FILES)
|
||||||
|
|
||||||
# shellcheck disable=SC2119
|
# shellcheck disable=SC2119
|
||||||
main() {
|
main() {
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
# lint: pylint
|
||||||
"""APKMirror
|
"""APKMirror
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
# lint: pylint
|
||||||
"""The Art Institute of Chicago
|
"""The Art Institute of Chicago
|
||||||
|
|
||||||
Explore thousands of artworks from The Art Institute of Chicago.
|
Explore thousands of artworks from The Art Institute of Chicago.
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
# lint: pylint
|
||||||
"""CORE (science)
|
"""CORE (science)
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
# lint: pylint
|
||||||
"""
|
"""
|
||||||
Deviantart (Images)
|
Deviantart (Images)
|
||||||
"""
|
"""
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
# lint: pylint
|
||||||
"""
|
"""
|
||||||
Digg (News, Social media)
|
Digg (News, Social media)
|
||||||
"""
|
"""
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
# lint: pylint
|
||||||
"""
|
"""
|
||||||
Gigablast (Web)
|
Gigablast (Web)
|
||||||
"""
|
"""
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
# lint: pylint
|
||||||
"""Google (Web)
|
"""Google (Web)
|
||||||
|
|
||||||
For detailed description of the *REST-full* API see: `Query Parameter
|
For detailed description of the *REST-full* API see: `Query Parameter
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
# lint: pylint
|
||||||
"""Google (Images)
|
"""Google (Images)
|
||||||
|
|
||||||
For detailed description of the *REST-full* API see: `Query Parameter
|
For detailed description of the *REST-full* API see: `Query Parameter
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
# lint: pylint
|
||||||
"""Google (News)
|
"""Google (News)
|
||||||
|
|
||||||
For detailed description of the *REST-full* API see: `Query Parameter
|
For detailed description of the *REST-full* API see: `Query Parameter
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
# lint: pylint
|
||||||
"""Google (Scholar)
|
"""Google (Scholar)
|
||||||
|
|
||||||
For detailed description of the *REST-full* API see: `Query Parameter
|
For detailed description of the *REST-full* API see: `Query Parameter
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
# lint: pylint
|
||||||
"""Google (Video)
|
"""Google (Video)
|
||||||
|
|
||||||
For detailed description of the *REST-full* API see: `Query Parameter
|
For detailed description of the *REST-full* API see: `Query Parameter
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
# lint: pylint
|
||||||
"""MediathekViewWeb (API)
|
"""MediathekViewWeb (API)
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
# lint: pylint
|
||||||
"""
|
"""
|
||||||
Meilisearch
|
Meilisearch
|
||||||
"""
|
"""
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
# lint: pylint
|
||||||
"""Solid Torrents
|
"""Solid Torrents
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
# lint: pylint
|
||||||
"""
|
"""
|
||||||
Solr
|
Solr
|
||||||
"""
|
"""
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
# lint: pylint
|
||||||
"""Springer Nature (science)
|
"""Springer Nature (science)
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
# lint: pylint
|
||||||
"""Yahoo (News)
|
"""Yahoo (News)
|
||||||
|
|
||||||
Yahoo News is "English only" and do not offer localized nor language queries.
|
Yahoo News is "English only" and do not offer localized nor language queries.
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
# lint: pylint
|
||||||
# pylint: disable=missing-module-docstring, missing-function-docstring
|
# pylint: disable=missing-module-docstring, missing-function-docstring
|
||||||
|
|
||||||
import typing
|
import typing
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
# lint: pylint
|
||||||
"""Searx preferences implementation.
|
"""Searx preferences implementation.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
# lint: pylint
|
||||||
"""Shared testing code."""
|
"""Shared testing code."""
|
||||||
|
|
||||||
# pylint: disable=missing-function-docstring
|
# pylint: disable=missing-function-docstring
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
# lint: pylint
|
||||||
"""
|
"""
|
||||||
Update searx/data/external_bangs.json using the duckduckgo bangs.
|
Update searx/data/external_bangs.json using the duckduckgo bangs.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user