From 119bb18197249b53c1e6e09ede164cbb6f13795c Mon Sep 17 00:00:00 2001 From: Rohan Rustagi Date: Wed, 12 Nov 2025 18:02:34 +0530 Subject: [PATCH] adding devcontainer --- .devcontainer/devcontainer.json | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..8e44724c --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,31 @@ +{ + "name": "Kimi CLI Development Container", + "image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye", + + "features": { + "ghcr.io/devcontainers/features/git:1": {} + }, + + "customizations": { + "vscode": { + "extensions": [ + "ms-python.python", + "ms-python.vscode-pylance", + "charliermarsh.ruff", + "ms-python.debugpy" + ], + "settings": { + "python.defaultInterpreterPath": "/usr/local/py-utils/bin/uv", + "python.analysis.typeCheckingMode": "basic", + "editor.formatOnSave": true, + "editor.codeActionsOnSave": { + "source.fixAll.ruff": true + }, + "ruff.path": ["/usr/local/py-utils/bin/uv", "run", "ruff"] + } + } + }, + + "postCreateCommand": "curl -LsSf https://astral.sh/uv/install.sh | sh && export PATH=\"/root/.cargo/bin:$PATH\" && make prepare && make check", + "remoteUser": "vscode" + } \ No newline at end of file