Skip to content

Commit a477ef1

Browse files
committed
chore(build): update default settings in devcontainer
1 parent 340c6d0 commit a477ef1

File tree

1 file changed

+33
-28
lines changed

1 file changed

+33
-28
lines changed

.devcontainer/devcontainer.json

Lines changed: 33 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,23 @@
33
{
44
"name": "robotcode devcontainer",
55
"image": "mcr.microsoft.com/devcontainers/base:jammy",
6-
// Features to add to the dev container. More info: https://containers.dev/features.
7-
"features": {
8-
"ghcr.io/devcontainers/features/common-utils:2": {
9-
"installZsh": true,
10-
"configureZshAsDefaultShell": true,
11-
"installOhMyZsh": true,
12-
"installOhMyZshConfig": true,
13-
"upgradePackages": true
14-
},
15-
"ghcr.io/devcontainers/features/node:1": {},
16-
"ghcr.io/devcontainers/features/python:1": {
17-
"version": "os-provided",
18-
"installTools": true,
19-
"optimize": true
20-
}
21-
// "ghcr.io/devcontainers/features/desktop-lite:1": {}
22-
},
23-
6+
// Features to add to the dev container. More info: https://containers.dev/features.
7+
"features": {
8+
"ghcr.io/devcontainers/features/common-utils:2": {
9+
"installZsh": true,
10+
"configureZshAsDefaultShell": true,
11+
"installOhMyZsh": true,
12+
"installOhMyZshConfig": true,
13+
"upgradePackages": true
14+
},
15+
"ghcr.io/devcontainers/features/node:1": {},
16+
"ghcr.io/devcontainers/features/python:1": {
17+
"version": "os-provided",
18+
"installTools": true,
19+
"optimize": true
20+
}
21+
// "ghcr.io/devcontainers/features/desktop-lite:1": {}
22+
},
2423
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
2524
//"build": {
2625
// "dockerfile": "Dockerfile"
@@ -43,7 +42,8 @@
4342
"gruntfuggly.todo-tree",
4443
"charliermarsh.ruff",
4544
"ms-python.black-formatter",
46-
"ms-python.mypy-type-checker"
45+
"ms-python.mypy-type-checker",
46+
"ms-python.debugpy"
4747
],
4848
"settings": {
4949
"python.testing.pytestArgs": [
@@ -67,25 +67,30 @@
6767
"**/.hatch": true,
6868
"**/.ruff_cache": true
6969
},
70-
"python.linting.flake8Enabled": false,
71-
"python.linting.mypyEnabled": true,
7270
"python.terminal.activateEnvInCurrentTerminal": true,
73-
"python.formatting.provider": "black",
7471
"python.analysis.completeFunctionParens": true,
75-
"python.linting.mypyArgs": [
76-
"--show-column-numbers"
77-
],
7872
"prettier.printWidth": 120,
7973
"prettier.tabWidth": 4,
80-
"eslint.alwaysShowStatus": true,
8174
"eslint.format.enable": true,
8275
"eslint.lintTask.enable": true,
8376
"git.followTagsWhenSync": true,
8477
"git.enableSmartCommit": true,
8578
"python.analysis.diagnosticMode": "workspace",
79+
"python.venvPath": "${workspaceFolder}/.hatch",
8680
"ruff.importStrategy": "fromEnvironment",
87-
"python.linting.enabled": true,
88-
"python.venvPath": "${workspaceFolder}/.hatch"
81+
"evenBetterToml.schema.associations": {
82+
"^(.*(/|\\\\)\\.?robot\\.toml|\\.?robot\\.toml)$": "http://localhost:8000/etc/robot.toml.json"
83+
},
84+
"yaml.schemas": {
85+
"https://squidfunk.github.io/mkdocs-material/schema.json": "mkdocs.yml"
86+
},
87+
"mypy-type-checker.importStrategy": "fromEnvironment",
88+
"debugpy.debugJustMyCode": false,
89+
"black-formatter.importStrategy": "fromEnvironment",
90+
"black-formatter.args": [
91+
"--config",
92+
"${workspaceFolder}./pyproject.toml"
93+
]
8994
}
9095
}
9196
}

0 commit comments

Comments
 (0)