Skip to content

Commit fb7e84e

Browse files
committed
chore: add devcontainer
1 parent 5e186ac commit fb7e84e

2 files changed

Lines changed: 37 additions & 0 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "fastapi-postgres-aca",
3+
"image": "mcr.microsoft.com/devcontainers/python:3.11-bullseye",
4+
"features": {
5+
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
6+
"ghcr.io/azure/azure-dev/azd:latest": {}
7+
},
8+
"customizations": {
9+
"vscode": {
10+
"extensions": [
11+
"ms-python.python",
12+
"ms-python.vscode-pylance",
13+
"charliermarsh.ruff",
14+
"ms-azuretools.vscode-docker",
15+
"hashicorp.terraform"
16+
],
17+
"settings": {
18+
"python.defaultInterpreterPath": "/usr/local/bin/python",
19+
"python.linting.enabled": true,
20+
"[python]": {
21+
"editor.formatOnSave": true
22+
},
23+
"python.formatting.provider": "black"
24+
}
25+
}
26+
},
27+
"forwardPorts": [
28+
8000,
29+
5432
30+
],
31+
"postCreateCommand": "pip install -r src/requirements-dev.txt",
32+
"remoteUser": "vscode"
33+
}

src/requirements-dev.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-r requirements.txt
2+
black
3+
ruff
4+
pre-commit

0 commit comments

Comments
 (0)