Skip to content

Commit 453a23e

Browse files
authored
Merge pull request #1 from cse-labs/erisch/service/v1
Erisch/service/v1
2 parents 1f1ea6f + 9d3f60b commit 453a23e

38 files changed

+1370
-420
lines changed

.devcontainer/devcontainer.json

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
// For format details, see https://aka.ms/devcontainer.json.
2+
{
3+
"name": "simple-flask-api-container",
4+
"image": "mcr.microsoft.com/devcontainers/python:3.11-bullseye",
5+
6+
// See https://containers.dev/implementors/features/
7+
"features": {
8+
"ghcr.io/devcontainers/features/docker-in-docker:latest": {},
9+
"ghcr.io/azure/azure-dev/azd:latest": {},
10+
"ghcr.io/devcontainers/features/azure-cli:latest": {},
11+
"ghcr.io/devcontainers/features/github-cli:latest": {},
12+
"ghcr.io/devcontainers/features/kubectl-helm-minikube:latest": {
13+
"version": "latest",
14+
"helm": "latest",
15+
"minikube": "none"
16+
}
17+
},
18+
19+
// Configure tool-specific properties.
20+
"customizations": {
21+
// Configure properties specific to VS Code.
22+
"vscode": {
23+
"files.watcherExclude": {
24+
"**/venv/**": true,
25+
"**/venv_old": true,
26+
"**/staticfiles": true,
27+
"**/package-lock*": true,
28+
"**/dist": true,
29+
"**/dev_media": true,
30+
"**/local_junk": true,
31+
"**/coverage": true,
32+
"**/htmlcov": true,
33+
"**/__pycache__": true,
34+
"**/rust/**/target/**": true,
35+
"**/.vscode/**": true,
36+
"**/.mypy_cache/**": true,
37+
"**/.git/**": true,
38+
"**/tmp/**": true
39+
},
40+
// Add the IDs of extensions you want installed when the container is created.
41+
"extensions": [
42+
"ms-python.python",
43+
"ms-python.vscode-pylance",
44+
"ms-azuretools.vscode-docker",
45+
"ms-vscode.azurecli",
46+
"ms-azuretools.vscode-bicep",
47+
"GitHub.copilot-chat"
48+
],
49+
// Set *default* container specific settings.json values on container create.
50+
"settings": {
51+
"python.defaultInterpreterPath": "/usr/local/bin/python",
52+
"python.linting.enabled": true,
53+
"python.linting.pylintEnabled": true,
54+
"python.linting.pylintArgs": [
55+
"--disable=C0114,C0115,C0116"
56+
],
57+
"python.languageServer": "Pylance",
58+
"python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
59+
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
60+
"python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf",
61+
"python.linting.banditPath": "/usr/local/py-utils/bin/bandit",
62+
"python.linting.flake8Path": "/usr/local/py-utils/bin/flake8",
63+
"python.linting.mypyPath": "/usr/local/py-utils/bin/mypy",
64+
"python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle",
65+
"python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
66+
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint",
67+
"python.testing.unittestEnabled": false,
68+
"python.testing.pytestEnabled": true,
69+
"workbench.startupEditor": "newUntitledFile"
70+
}
71+
}
72+
},
73+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
74+
"forwardPorts": [5000],
75+
76+
// Use 'postCreateCommand' to run commands after the container is created.
77+
"postCreateCommand": "python3 -m pip install -r src/requirements-dev.txt && pre-commit install",
78+
79+
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
80+
"remoteUser": "vscode"
81+
}

0 commit comments

Comments
 (0)