diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 91e5303fd0..82040ed82b 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,7 +1,6 @@ { "name": "dimos-dev", - "image": "ghcr.io/dimensionalos/dimos-dev:latest", - "postCreateCommand": "pre-commit install", + "image": "ghcr.io/dimensionalos/dev:dev", "customizations": { "vscode": { "extensions": [ @@ -9,5 +8,19 @@ "ms-python.vscode-pylance" ] } + }, + + "settings": { + "notebook.formatOnSave.enabled": true, + "notebook.codeActionsOnSave": { + "notebook.source.fixAll": "explicit", + "notebook.source.organizeImports": "explicit" + }, + "editor.codeActionsOnSave": { + "source.fixAll": "explicit", + "source.organizeImports": "explicit" + }, + "editor.defaultFormatter": "charliermarsh.ruff", + "editor.formatOnSave": true } } diff --git a/docker/dev/Dockerfile b/docker/dev/Dockerfile index 058221cfe1..73c3dab780 100644 --- a/docker/dev/Dockerfile +++ b/docker/dev/Dockerfile @@ -15,6 +15,9 @@ RUN apt-get install -y \ iputils-ping \ wget +COPY docker/dev/dev-requirements.txt /app/ +RUN --mount=type=cache,target=/root/.cache/pip pip install -r dev-requirements.txt + # Copy files and add version to motd COPY motd /etc/motd COPY /docker/dev/bash.sh /root/.bash.sh diff --git a/docker/dev/dev-requirements.txt b/docker/dev/dev-requirements.txt new file mode 100644 index 0000000000..965af4cc9d --- /dev/null +++ b/docker/dev/dev-requirements.txt @@ -0,0 +1,2 @@ +ruff==0.11.10 +mypy==1.15.0 diff --git a/pyproject.toml b/pyproject.toml index 1ffe5399bc..6d6dd776dd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,6 +8,23 @@ description = "Powering agentive generalist robotics" [tool.ruff] line-length = 120 +exclude = [ + ".git", + ".pytest_cache", + ".ruff_cache", + ".venv", + ".vscode", + "__pypackages__", + "_build", + "build", + "dist", + "node_modules", + "site-packages", + "venv", + "libs", + "external", + "src" +] [tool.pytest.ini_options] testpaths = ["dimos/robot"]