Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc85aaff authored by Arnau Vàzquez's avatar Arnau Vàzquez
Browse files

Merge branch 'dev/sync-searxnng-april' into 'master'

Sync changes from seaxng (April edition)

See merge request !181
parents 1c9ea922 8a098bc2
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
FROM mcr.microsoft.com/devcontainers/base:debian

RUN apt-get update && \
    apt-get -y install python3 python3-venv redis firefox-esr graphviz imagemagick librsvg2-bin fonts-dejavu shellcheck
+31 −0
Original line number Diff line number Diff line
{
  "build": {
    "dockerfile": "Dockerfile"
  },
  "features": {
    "ghcr.io/devcontainers/features/github-cli": {}
  },
  "customizations": {
    "vscode": {
      "extensions": [
        "ms-python.python",
        "ms-azuretools.vscode-docker"
      ],
      "remote.otherPortsAttributes": {
        "protocol": "https"
      },
      "settings": {
        "files.autoSave": "off",
        "python.defaultInterpreterPath": "/workspaces/searxng/local/py3/bin/python3",
        "python.formatting.blackPath": "/workspaces/searxng/local/py3/bin/black",
        "python.linting.pylintPath": "/workspaces/searxng/local/py3/bin/pylint"
      }
    }
  },
  "forwardPorts": [8000, 8888],
  "portsAttributes": {
    "8000": {"label": "Sphinx documentation"},
    "8888": {"label": "SearXNG"}
  },
  "postCreateCommand": "git pull && make install"
}

.editorconfig

0 → 100644
+40 −0
Original line number Diff line number Diff line
# https://editorconfig.org/

root = true

[*]
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf
charset = utf-8

[*.py]
max_line_length = 119

[*.html]
indent_size = 4

[*.json]
indent_size = 4
insert_final_newline = ignore

# Minified JavaScript files shouldn't be changed
[**.min.js]
indent_style = ignore
insert_final_newline = ignore

# Makefiles always use tabs for indentation
[Makefile]
indent_style = tab

# Batch files use tabs for indentation
[*.bat]
indent_style = tab

[docs/**.rst]
max_line_length = 79

[*.yml]
indent_size = 2
+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ jobs:
          - update_currencies.py
          - update_external_bangs.py
          - update_firefox_version.py
          - update_languages.py
          - update_engine_traits.py
          - update_wikidata_units.py
          - update_engine_descriptions.py
    steps:

.vscode/launch.json

0 → 100644
+23 −0
Original line number Diff line number Diff line
{
    // See https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "SearXNG",
            "type": "python",
            "request": "launch",
            "module": "searx.webapp",
            "env": {
                "FLASK_APP": "webapp",
                "FLASK_DEBUG": "1",
                "SEARXNG_DEBUG": "1",
            },
            "args": [
                "run"
            ],
            "jinja": true,
            "justMyCode": true,
            "python": "${workspaceFolder}/local/py3/bin/python",
        }
    ]
}
 No newline at end of file
Loading