1+ {
2+ "name" : " Python 3 & PostgreSQL" ,
3+ "dockerComposeFile" : " docker-compose.yml" ,
4+ "service" : " app" ,
5+ "workspaceFolder" : " /workspace" ,
6+ "settings" : {
7+ "sqltools.connections" : [
8+ {
9+ "name" : " Container database" ,
10+ "driver" : " PostgreSQL" ,
11+ "previewLimit" : 50 ,
12+ "server" : " localhost" ,
13+ "port" : 5432 ,
14+ "database" : " app" ,
15+ "username" : " app_user" ,
16+ "password" : " app_password"
17+ }
18+ ],
19+ "python.pythonPath" : " /usr/local/bin/python" ,
20+ "python.languageServer" : " Pylance" ,
21+ "python.linting.enabled" : true ,
22+ "python.linting.mypyEnabled" : true ,
23+ "python.testing.pytestEnabled" : true ,
24+ "python.formatting.provider" : " black" ,
25+ "python.formatting.blackArgs" : [
26+ " --line-length=80"
27+ ],
28+ "python.formatting.autopep8Path" : " /usr/local/py-utils/bin/autopep8" ,
29+ "python.formatting.blackPath" : " /usr/local/py-utils/bin/black" ,
30+ "python.formatting.yapfPath" : " /usr/local/py-utils/bin/yapf" ,
31+ "python.linting.banditPath" : " /usr/local/py-utils/bin/bandit" ,
32+ "python.linting.flake8Path" : " /usr/local/py-utils/bin/flake8" ,
33+ "python.linting.mypyPath" : " /usr/local/py-utils/bin/mypy" ,
34+ "python.linting.pycodestylePath" : " /usr/local/py-utils/bin/pycodestyle" ,
35+ "python.linting.pydocstylePath" : " /usr/local/py-utils/bin/pydocstyle" ,
36+ "python.linting.pylintPath" : " /usr/local/py-utils/bin/pylint" ,
37+ "python.testing.pytestPath" : " /usr/local/py-utils/bin/pytest"
38+ },
39+ "features" : {
40+ "ghcr.io/devcontainers/features/azure-cli:1" : {
41+ "version" : " latest"
42+ },
43+ "ghcr.io/devcontainers/features/github-cli:1" : {
44+ "version" : " latest"
45+ }
46+ },
47+ // Add the IDs of extensions you want installed when the container is created.
48+ "extensions" : [
49+ " ms-azuretools.azure-dev" ,
50+ " ms-python.python" ,
51+ " ms-python.vscode-pylance" ,
52+ " mtxr.sqltools" ,
53+ " mtxr.sqltools-driver-pg"
54+ ],
55+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
56+ "forwardPorts" : [
57+ 5000 , 5432
58+ ]
59+ // Use 'postCreateCommand' to run commands after the container is created.
60+ // "postCreateCommand": "",
61+ // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
62+ // "remoteUser": "vscode"
63+ }
0 commit comments