|
8 | 8 | // The .devcontainer/docker-compose.yml file contains any overrides you need/want to make.
|
9 | 9 | "dockerComposeFile": [
|
10 | 10 | "../docker-compose.yml",
|
| 11 | + "../docker-compose.dev.yml", |
11 | 12 | "docker-compose.yml"
|
12 | 13 | ],
|
13 | 14 |
|
|
17 | 18 |
|
18 | 19 | // The optional 'workspaceFolder' property is the path VS Code should open by default when
|
19 | 20 | // connected. This is typically a file mount in .devcontainer/docker-compose.yml
|
20 |
| - "workspaceFolder": "/app", |
| 21 | + "workspaceFolder": "/workspace", |
21 | 22 |
|
22 | 23 | // Set *default* container specific settings.json values on container create.
|
23 | 24 | "settings": {
|
24 |
| - // "python.analysis.extraPaths": [ |
25 |
| - // "${workspaceFolder}/svip_api" |
26 |
| - // ], |
27 |
| - // "python.testing.unittestArgs": [ |
28 |
| - // "-v", |
29 |
| - // "-s", |
30 |
| - // "./svip_api/api/tests", |
31 |
| - // "-p", |
32 |
| - // "test*.py" |
33 |
| - // ], |
34 |
| - "python.testing.unittestEnabled": false, |
| 25 | + "remote.autoForwardPorts": false, |
| 26 | + "python.analysis.extraPaths": ["${workspaceFolder}/svip_api/api"], |
| 27 | + "editor.tabSize": 2, |
| 28 | + "editor.insertSpaces": true, |
| 29 | + "editor.formatOnSave": true, |
| 30 | + "editor.formatOnPaste": false, |
| 31 | + "eslint.validate": ["javascript"], |
| 32 | + "python.formatting.provider": "autopep8", |
35 | 33 | "python.testing.pytestArgs": [
|
36 |
| - "./api/tests/", |
| 34 | + "./svip_api/api/tests/", |
37 | 35 | "--exitfirst",
|
38 | 36 | "--verbose"
|
39 | 37 | ],
|
40 |
| - "python.testing.pytestEnabled": true |
| 38 | + "python.testing.pytestEnabled": true, |
| 39 | + "python.testing.unittestEnabled": false, |
| 40 | + "[vue]": { |
| 41 | + "editor.defaultFormatter": "esbenp.prettier-vscode", |
| 42 | + "editor.codeActionsOnSave": { |
| 43 | + "source.fixAll.eslint": true |
| 44 | + } |
| 45 | + }, |
41 | 46 | },
|
42 | 47 |
|
43 | 48 | // Add the IDs of extensions you want installed when the container is created.
|
|
49 | 54 | "editorconfig.editorconfig",
|
50 | 55 | "hbenl.vscode-test-explorer",
|
51 | 56 | "ms-vscode.test-adapter-converter",
|
52 |
| - "littlefoxteam.vscode-python-test-adapter" |
| 57 | + "littlefoxteam.vscode-python-test-adapter", |
| 58 | + "ms-azuretools.vscode-docker" |
53 | 59 | ],
|
54 | 60 |
|
| 61 | + "features": { |
| 62 | + "github-cli": "latest", |
| 63 | + "git-lfs": "latest" |
| 64 | + // "docker": "latest" |
| 65 | + }, |
| 66 | + |
55 | 67 | // Use 'forwardPorts' to make a list of ports inside the container available locally.
|
56 | 68 | // "forwardPorts": [],
|
57 | 69 |
|
|
63 | 75 |
|
64 | 76 | // Uncomment the next line to run commands after the container is created - for example installing curl.
|
65 | 77 | // "postCreateCommand": "apt-get update && apt-get install -y curl",
|
66 |
| - "postCreateCommand": "pip install -r ./requirements.dev.txt" |
| 78 | + "postCreateCommand": "pip install -r ./svip_api/requirements.dev.txt" |
67 | 79 |
|
68 | 80 | // Uncomment to connect as a non-root user if you've added one. See https://aka.ms/vscode-remote/containers/non-root.
|
69 | 81 | // "remoteUser": "vscode"
|
|
0 commit comments