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

Unverified Commit 38414355 authored by Alexandre Flament's avatar Alexandre Flament Committed by GitHub
Browse files

Merge pull request #2274 from searxng/codespaces

Add GitHub Codespaces configuration
parents 41823da1 7b711cb1
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"
}

.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

.vscode/settings.json

0 → 100644
+11 −0
Original line number Diff line number Diff line
{
    "python.testing.unittestArgs": [
        "-v",
        "-s",
        "./tests",
        "-p",
        "test_*.py"
    ],
    "python.testing.pytestEnabled": false,
    "python.testing.unittestEnabled": true,
}
 No newline at end of file

.vscode/tasks.json

0 → 100644
+36 −0
Original line number Diff line number Diff line
{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "make run",
            "type": "shell",
            "command": "make run",
            "problemMatcher": [],
            "isBackground": true,
            "presentation": {
                "reveal": "always",
                "panel": "dedicated"
            },
            "group": {
                "kind": "build",
                "isDefault": true
            }
        },
        {
            "label": "make docs.live",
            "type": "shell",
            "command": "make docs.live",
            "problemMatcher": [],
            "isBackground": true,
            "presentation": {
                "reveal": "always",
                "panel": "dedicated"
            },
            "group": {
                "kind": "build"
            }
        }
    ]
}
 No newline at end of file
Loading