Skip to content

Commit a21648e

Browse files
cwebster-99luabud
andauthored
Updating launch.json (#26)
* Updating launch.json * Removing unused launch configs * Update .devcontainer/devcontainer.json Co-authored-by: Luciana Abud <45497113+luabud@users.noreply.github.com> --------- Co-authored-by: Luciana Abud <45497113+luabud@users.noreply.github.com>
1 parent 77f7d5d commit a21648e

File tree

3 files changed

+45
-22
lines changed

3 files changed

+45
-22
lines changed

.devcontainer/devcontainer.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/python
3+
{
4+
"name": "Python VS Code Django Tutorial",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye",
7+
8+
// Features to add to the dev container. More info: https://containers.dev/features.
9+
// "features": {},
10+
11+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
12+
// "forwardPorts": [],
13+
14+
// Use 'postCreateCommand' to run commands after the container is created.
15+
"postCreateCommand": "pip3 install --user -r requirements.txt",
16+
17+
// Configure tool-specific properties.
18+
"customizations": {
19+
"vscode": {
20+
"extensions": [
21+
"ms-python.python",
22+
"ms-python.black-formatter",
23+
"ms-python.vscode-pylance",
24+
"charliermarsh.ruff",
25+
"ms-python.debugpy"
26+
]
27+
}
28+
}
29+
30+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
31+
// "remoteUser": "root"
32+
}

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for more information:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
# https://containers.dev/guide/dependabot
6+
7+
version: 2
8+
updates:
9+
- package-ecosystem: "devcontainers"
10+
directory: "/"
11+
schedule:
12+
interval: weekly

.vscode/launch.json

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,9 @@
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
66
"configurations": [
7-
{
8-
"name": "Python: Current File (Integrated Terminal)",
9-
"type": "python",
10-
"request": "launch",
11-
"program": "${file}",
12-
"console": "integratedTerminal"
13-
},
14-
{
15-
"name": "Python: Attach",
16-
"type": "python",
17-
"request": "attach",
18-
"port": 5678,
19-
"host": "localhost"
20-
},
217
{
228
"name": "Python: Django",
23-
"type": "python",
9+
"type": "debugpy",
2410
"request": "launch",
2511
"program": "${workspaceFolder}/manage.py",
2612
"console": "integratedTerminal",
@@ -30,13 +16,6 @@
3016
"--nothreading"
3117
],
3218
"django": true
33-
},
34-
{
35-
"name": "Python: Current File (External Terminal)",
36-
"type": "python",
37-
"request": "launch",
38-
"program": "${file}",
39-
"console": "externalTerminal"
4019
}
4120
]
4221
}

0 commit comments

Comments
 (0)