11{
2- "name" : " Python 3 " ,
2+ "name" : " PGMob Development " ,
33 "build" : {
44 "dockerfile" : " Dockerfile" ,
55 "context" : " .." ,
66 "args" : {
7- "PYTHON_VERSION" : " 3.10 -bullseye"
7+ "PYTHON_VERSION" : " 3.11 -bullseye"
88 }
99 },
10- // Configure tool-specific properties.
1110 "customizations" : {
12- // Configure properties specific to VS Code.
1311 "vscode" : {
14- // Set *default* container specific settings.json values on container create.
1512 "settings" : {
1613 "terminal.integrated.profiles.linux" : {
1714 "bash" : {
1815 "path" : " /bin/bash"
1916 }
2017 },
21- "python.defaultInterpreterPath" : " /usr/local/bin/python" ,
22- "python.languageServer" : " Default" ,
23- "python.linting.enabled" : true ,
24- "python.linting.pylintEnabled" : true
18+ "python.defaultInterpreterPath" : " ${workspaceFolder}/.venv/bin/python" ,
19+ "python.languageServer" : " Pylance" ,
20+ "[python]" : {
21+ "editor.defaultFormatter" : " charliermarsh.ruff" ,
22+ "editor.formatOnSave" : true ,
23+ "editor.codeActionsOnSave" : {
24+ "source.fixAll.ruff" : " explicit" ,
25+ "source.organizeImports.ruff" : " explicit"
26+ }
27+ },
28+ "files.eol" : " \n " ,
29+ "python.testing.pytestArgs" : [
30+ " src/tests"
31+ ],
32+ "python.testing.unittestEnabled" : false ,
33+ "python.testing.pytestEnabled" : true
2534 },
26- // Add the IDs of extensions you want installed when the container is created.
2735 "extensions" : [
2836 " ms-python.python" ,
29- " ms-python.vscode-pylance"
37+ " ms-python.vscode-pylance" ,
38+ " charliermarsh.ruff"
3039 ]
3140 }
3241 },
3847 "mounts" : [
3948 " source=//var/run/docker.sock,target=/var/run/docker.sock,type=bind"
4049 ],
41- // Use 'postCreateCommand' to run commands after the container is created.
42- "postCreateCommand" : " poetry install -E psycopg2" ,
50+ "postCreateCommand" : " uv sync --all-extras" ,
4351 "initializeCommand" : " docker network create pgmob-network || docker network inspect pgmob-network" ,
4452 "runArgs" : [
4553 " --network=pgmob-network"
4654 ]
47- }
55+ }
0 commit comments