mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 21:19:12 +00:00
62 lines
2.1 KiB
JSON
62 lines
2.1 KiB
JSON
{
|
|
"name": "Khoj Development Environment",
|
|
"image": "mcr.microsoft.com/devcontainers/python:3.10",
|
|
"forwardPorts": [
|
|
42110
|
|
],
|
|
"containerEnv": {
|
|
"USE_EMBEDDED_DB": "True"
|
|
},
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": [
|
|
"ms-python.python",
|
|
"ms-python.vscode-pylance",
|
|
"ms-python.black-formatter",
|
|
"ms-python.mypy-type-checker",
|
|
"ms-python.isort",
|
|
"esbenp.prettier-vscode",
|
|
"GitHub.copilot",
|
|
"GitHub.copilot-chat",
|
|
"GitHub.vscode-pull-request-github",
|
|
"github.vscode-github-actions",
|
|
"unifiedjs.vscode-mdx"
|
|
],
|
|
"settings": {
|
|
"python.defaultInterpreterPath": "/workspace/.venv/bin/python",
|
|
"python.formatting.provider": "black",
|
|
"python.linting.enabled": true,
|
|
"python.linting.mypyEnabled": true,
|
|
"python.linting.mypyArgs": [
|
|
"--config-file=pyproject.toml"
|
|
],
|
|
"mypy.configFile": "pyproject.toml",
|
|
"isort.args": [
|
|
"--profile",
|
|
"black",
|
|
"--filter-files"
|
|
],
|
|
"python.testing.pytestArgs": [
|
|
"tests"
|
|
],
|
|
"python.testing.unittestEnabled": false,
|
|
"python.testing.pytestEnabled": true
|
|
}
|
|
}
|
|
},
|
|
"postCreateCommand": "scripts/dev_setup.sh --devcontainer",
|
|
"features": {
|
|
"ghcr.io/devcontainers-contrib/features/black:2": {},
|
|
"ghcr.io/devcontainers-contrib/features/mypy:2": {},
|
|
"ghcr.io/devcontainers-contrib/features/isort:2": {},
|
|
"ghcr.io/devcontainers-contrib/features/pre-commit:2": {},
|
|
"ghcr.io/devcontainers/features/github-cli:1": {},
|
|
"ghcr.io/devcontainers/features/node:1": {
|
|
"version": "lts",
|
|
"installYarnUsingApt": false,
|
|
"nodeGypDependencies": true
|
|
}
|
|
},
|
|
"remoteUser": "vscode"
|
|
}
|