-
Notifications
You must be signed in to change notification settings - Fork 252
/
devcontainer.json
62 lines (62 loc) · 2.41 KB
/
devcontainer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
"name": "Nautobot Dev Container",
"dockerComposeFile": [
"../development/docker-compose.yml",
"../development/docker-compose.postgres.yml",
"../development/docker-compose.dev.yml"
],
"features": {
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": { }
},
"service": "nautobot",
"shutdownAction": "stopCompose",
"customizations": {
"vscode": {
"extensions": [
"charliermarsh.ruff",
"DavidAnson.vscode-markdownlint",
"eamodio.gitlens",
"EditorConfig.EditorConfig",
"GitHub.vscode-pull-request-github",
"ms-python.python",
"ms-python.vscode-pylance",
"samuelcolvin.jinjahtml",
"tamasfe.even-better-toml"
],
"settings": {
// Global editor settings
"editor.codeActionsOnSave": {
"source.fixAll.markdownlint": "explicit"
},
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
// JSON settings
"json.format.keepLines": true,
"workbench.settings.useSplitJSON": false,
// Markdown settings
"[markdown]": {
"editor.defaultFormatter": "DavidAnson.vscode-markdownlint"
},
// Python settings
"[python]": {
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
"source.organizeImports": "explicit"
},
// When rebuilding the devcontainer, `Developer: Reload Window` must be
// executed for the Ruff formatter to be recognized by the settings.
// See: https://github.com/microsoft/vscode/issues/189839
"editor.defaultFormatter": "charliermarsh.ruff",
"editor.formatOnSave": true
},
"python.analysis.extraPaths": [
"${workspaceFolder}"
],
"python.defaultInterpreterPath": "/usr/local/bin/python",
"python.pythonPath": "/usr/local/bin/python"
}
}
},
"workspaceFolder": "/source",
"postCreateCommand": "bash .devcontainer/postCreateCommand.sh"
}