|
| 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": "API Development Container", |
| 5 | + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile |
| 6 | + "dockerComposeFile": [ |
| 7 | + "../compose-dev.yaml" |
| 8 | + ], |
| 9 | + "service": "backend", |
| 10 | + "workspaceFolder": "/app", |
| 11 | + "customizations": { |
| 12 | + "vscode": { |
| 13 | + "extensions": [ |
| 14 | + "IronGeek.vscode-env", |
| 15 | + "cweijan.vscode-redis-client", |
| 16 | + "emeraldwalk.RunOnSave", |
| 17 | + "mohamed-nouri.websocket-client", |
| 18 | + "ms-azuretools.vscode-docker", |
| 19 | + "usernamehw.errorlens", |
| 20 | + "Gruntfuggly.todo-tree", |
| 21 | + "ms-python.black-formatter", |
| 22 | + "ms-python.debugpy", |
| 23 | + "ms-python.isort", |
| 24 | + "ms-python.python" |
| 25 | + ], |
| 26 | + "settings": { |
| 27 | + "files.exclude": { |
| 28 | + "**/.venv": true |
| 29 | + }, |
| 30 | + "workbench.colorCustomizations": { |
| 31 | + "editorUnnecessaryCode.border": "#ff0000" |
| 32 | + }, |
| 33 | + "explorer.confirmDelete": false, |
| 34 | + "editor.cursorBlinking": "expand", |
| 35 | + "editor.cursorSmoothCaretAnimation": "on", |
| 36 | + "todo-tree.highlights.enabled": false, |
| 37 | + "window.density.editorTabHeight": "compact", |
| 38 | + "workbench.activityBar.location": "top", |
| 39 | + "editor.formatOnSave": true, |
| 40 | + "files.insertFinalNewline": true, |
| 41 | + "files.trimFinalNewlines": true, |
| 42 | + "[python]": { |
| 43 | + "editor.formatOnSave": true, |
| 44 | + "editor.codeActionsOnSave": { |
| 45 | + "source.organizeImports": "always", |
| 46 | + "source.unusedImports": "always" |
| 47 | + } |
| 48 | + }, |
| 49 | + "editor.rulers": [ |
| 50 | + { |
| 51 | + "column": 80, |
| 52 | + "color": "#303030" |
| 53 | + }, |
| 54 | + { |
| 55 | + "column": 72, |
| 56 | + "color": "#242424" |
| 57 | + } |
| 58 | + ], |
| 59 | + "black-formatter.args": [ |
| 60 | + "--line-length=80" |
| 61 | + ], |
| 62 | + "emeraldwalk.runonsave": { |
| 63 | + "commands": [ |
| 64 | + { |
| 65 | + "match": "((packages)|(requirements))\\.txt", |
| 66 | + "isAsync": true, |
| 67 | + "cmd": "sort -o ${file} ${file}" |
| 68 | + } |
| 69 | + ] |
| 70 | + }, |
| 71 | + "python.analysis.autoImportCompletions": true |
| 72 | + } |
| 73 | + } |
| 74 | + } |
| 75 | +} |
0 commit comments