Markus Heiser
b83c14cf6b
[pylint] Pylint 2.10 - fix use-list-literal & use-dict-literal
...
Pylint 2.10 added new default checks [1]:
use-list-literal
Emitted when list() is called with no arguments instead of using []
use-dict-literal
Emitted when dict() is called with no arguments instead of using {}
[1] https://pylint.pycqa.org/en/latest/whatsnew/2.10.html
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-08-31 10:40:29 +02:00
dependabot[bot]
c6f7a731d5
Bump pylint from 2.9.6 to 2.10.2
...
Bumps [pylint](https://github.com/PyCQA/pylint ) from 2.9.6 to 2.10.2.
- [Release notes](https://github.com/PyCQA/pylint/releases )
- [Changelog](https://github.com/PyCQA/pylint/blob/main/ChangeLog )
- [Commits](https://github.com/PyCQA/pylint/compare/v2.9.6...v2.10.2 )
---
updated-dependencies:
- dependency-name: pylint
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-08-27 07:03:23 +00:00
Alexandre Flament
38e0b9360b
Merge pull request #257 from dalf/mod_image_proxy
...
Mod image proxy
2021-08-25 11:24:27 +02:00
Alexandre Flament
697ebeddcc
[mod] searx.utils.dict_subset: rewrite with comprehension
2021-08-24 15:28:08 +02:00
Alexandre Flament
3b0f70ed0f
[mod] /image_proxy: use HTTP/1 instead of HTTP/2
...
httpx: HTTP/2 is slow when a lot data is downloaded.
https://github.com/dalf/pyhttp-benchmark
also, the usage of HTTP/1 decreases the load average
2021-08-24 14:51:20 +02:00
Alexandre Flament
43fcaa642a
[fix] image_proxy: always close the httpx respone
...
previously, when the content type was not an image and some other error,
the httpx response was not closed
2021-08-24 14:51:20 +02:00
Alexandre Flament
df15c655f7
[mod] /image_proxy: don't decompress images
2021-08-24 14:51:20 +02:00
Alexandre Flament
dec9df28f3
Merge pull request #264 from searxng/dependabot/pip/master/pygments-2.10.0
...
Bump pygments from 2.9.0 to 2.10.0
2021-08-24 09:36:58 +02:00
Markus Heiser
183c856396
Merge pull request #266 from return42/fix-scripts
...
[fix] utils/searx.sh install settings - do not eval the template
2021-08-22 16:07:37 +00:00
Markus Heiser
29b40338d6
Merge pull request #260 from dalf/mod_locale
...
[mod] searx.webapp.get_locale: read locale from the preferences
2021-08-22 16:07:21 +00:00
Alexandre Flament
6f9e3868d6
Merge pull request #267 from dalf/backport_google
...
[enh] google: add filter=0 to Google engine for more results
2021-08-21 17:51:18 +02:00
Noémi Ványi
3d5e6e0abb
[enh] google: add filter=0 to Google engine for more results
...
backport from searx ( 23b3b56a06ef831af0a1b30a12c26ebd50e329bb )
2021-08-21 17:46:16 +02:00
Markus Heiser
8ba4dc26d1
[fix] utils/searx.sh install settings - do not eval the template
...
The settings template in utils/templates/etc/searx/settings.yml
does not include any replacements (shell environment variables).
BTW: utils/filtron.sh & utils/lib.sh
Add some more messages to installation procedures, to be more clear.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-08-20 14:21:54 +02:00
Alexandre Flament
102c815231
Merge pull request #265 from searxng/translations_update
...
Update translations
2021-08-20 11:44:11 +02:00
searxng-bot
eafa373cff
[translations] update
...
b25c9d58
- 2021-08-17 - Allan Nordhøy <epost@anotheragency.no>
2021-08-20 07:16:15 +00:00
dependabot[bot]
d37676558c
Bump pygments from 2.9.0 to 2.10.0
...
Bumps [pygments](https://github.com/pygments/pygments ) from 2.9.0 to 2.10.0.
- [Release notes](https://github.com/pygments/pygments/releases )
- [Changelog](https://github.com/pygments/pygments/blob/master/CHANGES )
- [Commits](https://github.com/pygments/pygments/compare/2.9.0...2.10.0 )
---
updated-dependencies:
- dependency-name: pygments
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-08-20 07:03:53 +00:00
Alexandre Flament
6844e3a617
Merge pull request #263 from return42/fix-config
...
[fix] /config add missing GIT_BRANCH value
2021-08-18 20:04:26 +02:00
Markus Heiser
8290f70e24
[fix] /config add missing GIT_BRANCH value
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-08-18 19:51:07 +02:00
Alexandre Flament
771691e3b0
README.rst : add weblate link
2021-08-17 10:58:26 +02:00
Alexandre Flament
9760e763f1
Merge pull request #262 from searxng/translations_update
...
Update translations
2021-08-17 10:51:44 +02:00
searxng-bot
02b6f0c370
[translations] update
...
fc3041a0
- 2021-08-10 - Allan Nordhøy <epost@anotheragency.no>
fcc3732d
- 2021-08-06 - Allan Nordhøy <epost@anotheragency.no>
894bd655
- 2021-08-06 - Allan Nordhøy <epost@anotheragency.no>
2021-08-17 08:47:59 +00:00
Alexandre Flament
28b350eda6
Merge pull request #250 from dalf/weblate_v2
...
[translations] weblate integration
2021-08-17 10:38:50 +02:00
Alexandre Flament
28ccf47ca4
[mod] searx.webapp.get_locale: read locale from the preferences
...
pre_request already set the locale.
2021-08-17 08:18:30 +02:00
Alexandre Flament
a925254c3d
Merge pull request #258 from dalf/plugin_minor_change
...
[mod] plugins: minor change
2021-08-16 17:10:28 +02:00
Alexandre Flament
0b0071af00
Merge pull request #259 from dalf/fix_checker
...
[fix] searx.search.checker.get_result() always return a dict
2021-08-16 14:00:17 +02:00
Markus Heiser
97355672cd
[translations] ./manage rename shell functions to integrate weblate
...
Functions implemented to run *Weblate* workflows should use prefix 'weblate.':
- babel.setup.translations.worktree --> weblate.translations.worktree
Create git worktree ${TRANSLATIONS_WORKTREE} and checkout branch
'translations' from Weblate's counterpart (weblate) of the SearXNG
(origin)::
remote weblate https://weblate.bubu1.eu/git/searxng/searxng/
- babel.weblate.to.translations --> weblate.to.translations
Update 'translations' branch of SearXNG (origin) with last additions from
Weblate.
- babel.translations.to.master --> weblate.translations.commit
Update 'translations' branch of SearXNG (origin) with last additions from
Weblate. Copy the changes to the master branch, compile translations and
create a commit in the local branch (master)
- babel.master.to.translations --> weblate.push.translations
Push *translation changes* from SearXNG (origin) to Weblate's
counterpart (weblate).
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-08-16 12:06:12 +02:00
Markus Heiser
0dc8d244c5
[translation] ./manage: add comments to new functions, rename job
...
./mange
Comment functions:
- babel.setup.translations.worktree
- babel.weblate.to.translations
- babel.translations.to.master
- babel.master.to.translations
BTW:
- changed some cd into pushd
- removed obsolete `set -x`
- remove not needed echo from `last_commit_message=$(echo ..`
.github/workflows/translations-update.yml
docs/dev/translation.rst
Rename job to: "create PR for additons from weblate"
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-08-16 12:00:16 +02:00
Alexandre Flament
2f363858b8
[fix] searx.search.checker.get_result() always return a dict
...
So checker_results['status'] == 'ok' is enough to check the checker result.
See searx/webapp.py, /preferences endpoint
2021-08-16 08:29:16 +02:00
Alexandre Flament
3f3b5d6181
[mod] plugins: minor change
...
required attributes: display a different message
when the attribute has the wrong type
2021-08-14 18:03:31 +02:00
Alexandre Flament
9667142d5c
Merge pull request #255 from searxng/dependabot/pip/master/uvloop-0.16.0
...
Bump uvloop from 0.15.3 to 0.16.0
2021-08-13 09:15:42 +02:00
dependabot[bot]
62b244b419
Bump uvloop from 0.15.3 to 0.16.0
...
Bumps [uvloop](https://github.com/MagicStack/uvloop ) from 0.15.3 to 0.16.0.
- [Release notes](https://github.com/MagicStack/uvloop/releases )
- [Commits](https://github.com/MagicStack/uvloop/compare/v0.15.3...v0.16.0 )
---
updated-dependencies:
- dependency-name: uvloop
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-08-13 07:03:50 +00:00
Markus Heiser
640ffa3aaa
[translations] WF figure rename label to "weblate clone of SearXNG origin"
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-08-09 17:59:27 +02:00
Markus Heiser
58344b0827
[translations] additional documentation of the Weblate workflows
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-08-09 17:58:27 +02:00
Alexandre Flament
7f18cbbee0
Merge pull request #253 from return42/minor-fix
...
[fix] settings.yml - replace http:// URLs by https://
2021-08-07 18:12:44 +02:00
Markus Heiser
15bf9fc850
[fix] settings.yml - replace http:// URLs by https://
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-08-07 16:43:19 +02:00
Alexandre Flament
901ab87717
[translations] web integration
...
* make babel.translations.to.master: pull weblate updates
* make babel.master.to.translations: push .pot and .po files to weblate
2021-08-07 15:06:06 +02:00
Markus Heiser
80372d87d9
Merge pull request #252 from searxng/dependabot/pip/master/sphinx-tabs-3.2.0
...
Bump sphinx-tabs from 3.1.0 to 3.2.0
2021-08-06 19:06:29 +00:00
Markus Heiser
c2e8480e60
Merge pull request #251 from searxng/dependabot/pip/master/yamllint-1.26.2
...
Bump yamllint from 1.26.1 to 1.26.2
2021-08-06 19:00:32 +00:00
dependabot[bot]
4b088cd444
Bump sphinx-tabs from 3.1.0 to 3.2.0
...
Bumps [sphinx-tabs](https://github.com/executablebooks/sphinx-tabs ) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/executablebooks/sphinx-tabs/releases )
- [Changelog](https://github.com/executablebooks/sphinx-tabs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/executablebooks/sphinx-tabs/compare/v3.1.0...v3.2.0 )
---
updated-dependencies:
- dependency-name: sphinx-tabs
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-08-06 07:03:55 +00:00
dependabot[bot]
aec2797dc8
Bump yamllint from 1.26.1 to 1.26.2
...
Bumps [yamllint](https://github.com/adrienverge/yamllint ) from 1.26.1 to 1.26.2.
- [Release notes](https://github.com/adrienverge/yamllint/releases )
- [Changelog](https://github.com/adrienverge/yamllint/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/adrienverge/yamllint/compare/v1.26.1...v1.26.2 )
---
updated-dependencies:
- dependency-name: yamllint
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-08-06 07:03:50 +00:00
Markus Heiser
f5c3e9f3dd
Merge pull request #249 from return42/docs-drop-locales
...
[docs] admin/engines/settings.rst remove 'locales' section
2021-08-04 09:37:24 +00:00
Markus Heiser
b3e07db96e
[docs] admin/engines/settings.rst remove 'locales' section
...
'locales' setting has been removed in:
- f30d01ff
[mod] settings.yml: remove locales
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-08-04 11:32:35 +02:00
Alexandre Flament
4e2ec9b8b3
Merge pull request #247 from dalf/remote_settings_locales
...
settings.yml: remove locales section.
2021-08-04 11:05:13 +02:00
Alexandre Flament
0d20e5dfe3
[mod] searx/locales.py: language names based on Unicode CLDR
...
rename "oc" to "Occitan":
* https://github.com/unicode-org/cldr/blob/35.1/seed/main/oc.xml#L115
* https://oc.wikipedia.org/wiki/Occitan
see https://github.com/searxng/searxng/pull/247#issuecomment-892382001
2021-08-04 09:50:34 +02:00
Markus Heiser
809bf1a105
[mod] pylint & document searx.locales (settings.yml: remove locales)
...
- Add ``# lint: pylint`` header to pylint this python file.
- Fix issues reported by pylint.
- Add source code documentation of modul searx.locales
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-08-04 07:54:53 +02:00
Alexandre Flament
f30d01ffab
[mod] settings.yml: remove locales
...
There are detected from the searx/translations directory
2021-08-03 15:44:45 +02:00
Alexandre Flament
bd17544f82
[fix] make test.robot: firefox profile: intl.accept_languages=en
...
make sure Firefox in test.robot asks for English pages
2021-08-03 15:11:51 +02:00
Alexandre Flament
34ffd08187
Merge pull request #235 from searxng/dependabot-npm
...
dependabot.yml: check npm packages
2021-08-02 11:15:56 +02:00
Alexandre Flament
83b973d401
Merge pull request #238 from dalf/update_babel
...
Automatic update of searx/translations/messages.pot and messages.po files.
2021-08-02 11:04:37 +02:00
Markus Heiser
900baf2eae
[mod] manage - implement babel commands, drop update_translations.sh
...
In ./manage implement babel.*:
- extract : extract messages from source files and generate POT file
- update : update existing message catalogs from POT file
- compile : compile translation catalogs into binary MO files
Replace searx_extra/update/update_translations.sh by command:
- ci.babel.update
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-08-02 10:06:27 +02:00