generated from eclipse-velocitas/vehicle-app-python-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
devcontainer.json
96 lines (96 loc) · 2.7 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
// This file is maintained by velocitas CLI, do not modify manually. Change settings in .velocitas.json
{
"name": "Python vehicle app",
"build": {
"dockerfile": "Dockerfile"
},
"runArgs": [
"--init",
"--privileged"
],
"containerEnv": {
"GITHUB_API_TOKEN": "${localEnv:GITHUB_API_TOKEN}"
},
"customizations": {
"vscode": {
// Set *default* container specific settings.json values on container create.
"settings": {
"python.defaultInterpreterPath": "/usr/bin/python3",
"python.analysis.typeCheckingMode": "basic",
// Strong Type Checker
"python.linting.mypyEnabled": true,
"mypy.runUsingActiveInterpreter": true,
"python.linting.mypyArgs": [],
"mypy.targets": [
"app"
],
// Security Linter
"python.linting.banditEnabled": true,
"python.linting.banditArgs": [
"-c setup.cfg"
],
// Only Flake8 is used as linter and static code analyzer, as faster tool
"python.linting.enabled": true,
"python.linting.flake8Enabled": true,
// Style Checker for Python Docs
"python.linting.pydocstyleEnabled": true,
"python.analysis.extraPaths": [
"./proto",
"./src/vehicle_model"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
// Style Formatter
"python.formatting.provider": "black",
"vs-kubernetes": {
"vscode-kubernetes.kubectl-path.linux": "/usr/bin/kubectl",
"vscode-kubernetes.helm-path.linux": "/usr/local/bin/helm"
},
"terminal.integrated.defaultProfile.linux": "zsh",
"terminal.integrated.profiles.linux": {
"zsh": {
"path": "/usr/bin/zsh"
}
},
"vsmqtt.brokerProfiles": [
{
"name": "mosquitto (local)",
"host": "localhost",
"port": 1883,
"clientId": "vsmqtt_client"
},
{
"name": "mosquitto (k3d)",
"host": "localhost",
"port": 31883,
"clientId": "vsmqtt_client"
},
{
"name": "mosquitto (kanto)",
"host": "localhost",
"port": 1883,
"clientId": "vsmqtt_client"
}
]
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"dbaeumer.vscode-eslint",
"ms-azuretools.vscode-dapr",
"ms-azuretools.vscode-docker",
"ms-python.python",
"cschleiden.vscode-github-actions",
"rpdswtk.vsmqtt",
"dotjoshjohnson.xml",
"ms-kubernetes-tools.vscode-kubernetes-tools",
"matangover.mypy",
"augustocdias.tasks-shell-input",
"ms-python.isort",
"ms-python.flake8"
]
}
},
"onCreateCommand": "bash .devcontainer/scripts/postCreateCommand.sh",
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode"
}