diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2021-06-01 16:03:19 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2021-06-01 16:03:19 +0200 |
commit | 495d86b520c71e36c6f924a3a2421e499d159c2b (patch) | |
tree | f7d9b50319a996128bcf8083e15fc16768ddf450 /searx/__init__.py | |
parent | 6fa114c9ba0f9e20168754dd4cbd03e5defef631 (diff) | |
download | searxng-495d86b520c71e36c6f924a3a2421e499d159c2b.tar.gz searxng-495d86b520c71e36c6f924a3a2421e499d159c2b.zip |
[pylint] searx/__init__.py & searx/settings_defaults.py
BTW: normalize some indentations in searx/settings_defaults.py
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/__init__.py')
-rw-r--r-- | searx/__init__.py | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/searx/__init__.py b/searx/__init__.py index ded0ff2f5..a65266de8 100644 --- a/searx/__init__.py +++ b/searx/__init__.py @@ -1,25 +1,12 @@ -''' -searx is free software: you can redistribute it and/or modify -it under the terms of the GNU Affero General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -searx is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU Affero General Public License for more details. - -You should have received a copy of the GNU Affero General Public License -along with searx. If not, see < http://www.gnu.org/licenses/ >. - -(C) 2013- by Adam Tauber, <asciimoo@gmail.com> -''' +# SPDX-License-Identifier: AGPL-3.0-or-later +# lint: pylint +# pylint: disable=missing-function-docstring, missing-module-docstring +from os.path import dirname, abspath import logging + import searx.settings_loader from searx.settings_defaults import settings_set_defaults -from os.path import dirname, abspath - searx_dir = abspath(dirname(__file__)) searx_parent_dir = abspath(dirname(dirname(__file__))) @@ -45,7 +32,7 @@ else: logger.info('max_request_timeout=%i second(s)', max_request_timeout) -class _brand_namespace: +class _brand_namespace: # pylint: disable=invalid-name @classmethod def get_val(cls, group, name, default=''): |