-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathfastapi-documentdb.code-workspace
More file actions
173 lines (165 loc) · 4.26 KB
/
fastapi-documentdb.code-workspace
File metadata and controls
173 lines (165 loc) · 4.26 KB
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
{
"folders": [
{
"path": "."
}
],
"settings": {
// Python settings
"python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python",
"python.analysis.typeCheckingMode": "basic",
"python.linting.enabled": true,
"python.linting.pylintEnabled": false,
"python.formatting.provider": "black",
"python.formatting.blackArgs": [
"--line-length=100"
],
// Editor settings
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
},
"editor.rulers": [100],
// Files settings
"files.exclude": {
"**/__pycache__": true,
"**/*.pyc": true,
"**/.pytest_cache": true,
"**/.mypy_cache": true,
"**/node_modules": true
},
// DocumentDB Extension settings (if installed)
"documentDB.mongoShell.batchSize": 50,
"documentDB.mongoShell.timeout": 30000,
"documentDB.userInterface.ShowOperationSummaries": true,
// Docker settings
"docker.containers.sortBy": "Status",
"docker.images.sortBy": "CreatedTime"
},
"extensions": {
"recommendations": [
// DocumentDB Extension
"ms-azuretools.vscode-documentdb",
// Python Development
"ms-python.python",
"ms-python.vscode-pylance",
"ms-python.black-formatter",
"ms-python.isort",
// Docker
"ms-azuretools.vscode-docker",
// REST Client (for testing API)
"humao.rest-client",
// Additional helpful extensions
"redhat.vscode-yaml",
"tamasfe.even-better-toml",
"GitHub.copilot"
],
"unwantedRecommendations": []
},
"launch": {
"version": "0.2.0",
"configurations": [
{
"name": "FastAPI: Debug",
"type": "python",
"request": "launch",
"module": "uvicorn",
"args": [
"app.main:app",
"--reload",
"--host",
"0.0.0.0",
"--port",
"8000"
],
"cwd": "${workspaceFolder}/backend",
"env": {
"PYTHONPATH": "${workspaceFolder}/backend"
},
"console": "integratedTerminal",
"justMyCode": false
},
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"justMyCode": true
},
{
"name": "Python: Pytest",
"type": "python",
"request": "launch",
"module": "pytest",
"args": [
"-v",
"${workspaceFolder}/backend/tests"
],
"cwd": "${workspaceFolder}/backend",
"console": "integratedTerminal",
"justMyCode": false
}
]
},
"tasks": {
"version": "2.0.0",
"tasks": [
{
"label": "Docker: Start Services",
"type": "shell",
"command": "docker-compose up -d",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "always",
"panel": "new"
}
},
{
"label": "Docker: Stop Services",
"type": "shell",
"command": "docker-compose down",
"problemMatcher": []
},
{
"label": "Docker: View Logs",
"type": "shell",
"command": "docker-compose logs -f backend",
"problemMatcher": [],
"presentation": {
"reveal": "always",
"panel": "new"
}
},
{
"label": "Python: Run Tests",
"type": "shell",
"command": "docker-compose exec backend pytest -v",
"problemMatcher": [],
"group": {
"kind": "test",
"isDefault": true
}
},
{
"label": "Python: Format Code",
"type": "shell",
"command": "docker-compose exec backend black backend/app backend/tests && docker-compose exec backend isort backend/app backend/tests",
"problemMatcher": []
},
{
"label": "Load Sample Data",
"type": "shell",
"command": "docker-compose exec backend python scripts/load_sample_data.py",
"problemMatcher": [],
"presentation": {
"reveal": "always"
}
}
]
}
}