Skip to content

Commit 9175465

Browse files
committed
Fix devcontainer.json nesting
1 parent 38d4dac commit 9175465

File tree

1 file changed

+48
-44
lines changed

1 file changed

+48
-44
lines changed

.devcontainer/devcontainer.json

Lines changed: 48 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -3,52 +3,56 @@
33
"dockerComposeFile": "docker-compose.yml",
44
"service": "app",
55
"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-
},
396
"features": {
407
"ghcr.io/devcontainers/features/github-cli:1": {
41-
"version": "latest"
42-
}
43-
},
44-
// Add the IDs of extensions you want installed when the container is created.
45-
"extensions": [
46-
"ms-azuretools.azure-dev",
47-
"ms-python.python",
48-
"ms-python.vscode-pylance",
49-
"mtxr.sqltools",
50-
"mtxr.sqltools-driver-pg"
51-
],
8+
"version": "latest"
9+
}
10+
},
11+
"customizations": {
12+
"vscode": {
13+
// Add the IDs of extensions you want installed when the container is created.
14+
"extensions": [
15+
"ms-azuretools.azure-dev",
16+
"ms-python.python",
17+
"ms-python.vscode-pylance",
18+
"mtxr.sqltools",
19+
"mtxr.sqltools-driver-pg"
20+
],
21+
"settings": {
22+
"sqltools.connections": [
23+
{
24+
"name": "Container database",
25+
"driver": "PostgreSQL",
26+
"previewLimit": 50,
27+
"server": "localhost",
28+
"port": 5432,
29+
"database": "app",
30+
"username": "app_user",
31+
"password": "app_password"
32+
}
33+
],
34+
"python.pythonPath": "/usr/local/bin/python",
35+
"python.languageServer": "Pylance",
36+
"python.linting.enabled": true,
37+
"python.linting.mypyEnabled": true,
38+
"python.testing.pytestEnabled": true,
39+
"python.formatting.provider": "black",
40+
"python.formatting.blackArgs": [
41+
"--line-length=80"
42+
],
43+
"python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
44+
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
45+
"python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf",
46+
"python.linting.banditPath": "/usr/local/py-utils/bin/bandit",
47+
"python.linting.flake8Path": "/usr/local/py-utils/bin/flake8",
48+
"python.linting.mypyPath": "/usr/local/py-utils/bin/mypy",
49+
"python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle",
50+
"python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
51+
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint",
52+
"python.testing.pytestPath": "/usr/local/py-utils/bin/pytest"
53+
}
54+
}
55+
},
5256
// Use 'forwardPorts' to make a list of ports inside the container available locally.
5357
"forwardPorts": [
5458
5000, 5432

0 commit comments

Comments
 (0)