|
1 | 1 | { |
2 | | - "name": "STeaMi MicroPython Dev", |
3 | | - "build": { |
4 | | - "dockerfile": "Dockerfile" |
5 | | - }, |
6 | | - "postCreateCommand": "make setup", |
7 | | - "customizations": { |
8 | | - "vscode": { |
9 | | - "extensions": [ |
10 | | - "charliermarsh.ruff", |
11 | | - "ms-python.python" |
12 | | - ], |
13 | | - "settings": { |
14 | | - "python.defaultInterpreterPath": "/usr/local/bin/python", |
15 | | - "python.testing.pytestEnabled": true, |
16 | | - "python.testing.pytestArgs": ["-v", "-k", "mock"], |
17 | | - "editor.formatOnSave": true, |
18 | | - "[python]": { |
19 | | - "editor.defaultFormatter": "charliermarsh.ruff" |
| 2 | + "name": "STeaMi MicroPython Dev", |
| 3 | + "build": { |
| 4 | + "dockerfile": "Dockerfile" |
| 5 | + }, |
| 6 | + |
| 7 | + // USB access for STeaMi board (DAPLink / mpremote / OpenOCD) |
| 8 | + "privileged": true, |
| 9 | + "mounts": ["type=bind,source=/dev/bus/usb,target=/dev/bus/usb"], |
| 10 | + "runArgs": ["--device=/dev/bus/usb"], |
| 11 | + |
| 12 | + "features": { |
| 13 | + "ghcr.io/devcontainers/features/node:1": { |
| 14 | + "version": "20" |
| 15 | + }, |
| 16 | + "ghcr.io/devcontainers/features/common-utils:2": { |
| 17 | + "installZsh": true, |
| 18 | + "installOhMyZsh": true, |
| 19 | + "upgradePackages": true, |
| 20 | + "username": "vscode" |
| 21 | + }, |
| 22 | + "ghcr.io/devcontainers/features/github-cli:1": {}, |
| 23 | + "ghcr.io/devcontainers-extra/features/shell-history:0": {} |
| 24 | + }, |
| 25 | + |
| 26 | + "customizations": { |
| 27 | + "vscode": { |
| 28 | + "settings": { |
| 29 | + "terminal.integrated.profiles.linux": { |
| 30 | + "zsh": { |
| 31 | + "path": "zsh" |
| 32 | + } |
| 33 | + }, |
| 34 | + "terminal.integrated.defaultProfile.linux": "zsh", |
| 35 | + |
| 36 | + "editor.minimap.enabled": false, |
| 37 | + "editor.formatOnSave": true, |
| 38 | + "editor.formatOnPaste": true, |
| 39 | + "editor.rulers": [99], |
| 40 | + |
| 41 | + "[python]": { |
| 42 | + "editor.defaultFormatter": "charliermarsh.ruff" |
| 43 | + }, |
| 44 | + "[json]": { |
| 45 | + "editor.defaultFormatter": "esbenp.prettier-vscode" |
| 46 | + }, |
| 47 | + "[jsonc]": { |
| 48 | + "editor.defaultFormatter": "esbenp.prettier-vscode" |
| 49 | + }, |
| 50 | + "[makefile]": { |
| 51 | + "editor.tabSize": 8 |
| 52 | + }, |
| 53 | + "[yaml]": { |
| 54 | + "editor.tabSize": 2 |
| 55 | + }, |
| 56 | + |
| 57 | + "python.defaultInterpreterPath": "/usr/local/bin/python", |
| 58 | + "python.testing.pytestEnabled": true, |
| 59 | + "python.testing.pytestArgs": ["-v", "-k", "mock"], |
| 60 | + |
| 61 | + "files.watcherExclude": { |
| 62 | + "**/.git/objects/**": true, |
| 63 | + "**/node_modules/**": true, |
| 64 | + "**/.build/**": true, |
| 65 | + "**/__pycache__/**": true |
| 66 | + }, |
| 67 | + "search.exclude": { |
| 68 | + "**/node_modules": true, |
| 69 | + "**/.build": true |
| 70 | + } |
| 71 | + }, |
| 72 | + "extensions": [ |
| 73 | + "charliermarsh.ruff", |
| 74 | + "ms-python.python", |
| 75 | + "ms-vscode.vscode-serial-monitor", |
| 76 | + "esbenp.prettier-vscode", |
| 77 | + "github.vscode-pull-request-github", |
| 78 | + "vivaxy.vscode-conventional-commits" |
| 79 | + ] |
20 | 80 | } |
21 | | - } |
22 | | - } |
23 | | - } |
| 81 | + }, |
| 82 | + |
| 83 | + "postCreateCommand": "make setup && sudo /lib/systemd/systemd-udevd --daemon", |
| 84 | + "remoteUser": "vscode" |
24 | 85 | } |
0 commit comments