1+ // For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2+ // https://github.com/microsoft/vscode-dev-containers/tree/v0.177.0/containers/python-3-postgres
3+ // Update the VARIANT arg in docker-compose.yml to pick a Python version: 3, 3.8, 3.7, 3.6
4+ {
5+ "name" : " ghga-metadata-schema" ,
6+ "dockerComposeFile" : " docker-compose.yml" ,
7+ "service" : " app" ,
8+ "workspaceFolder" : " /workspace" ,
9+ // Set *default* container specific settings.json values on container create.
10+ "customizations" : {
11+ "vscode" : {
12+ // Set *default* container specific settings.json values on container create.
13+ "settings" : {
14+ "terminal.integrated.profiles.linux" : {
15+ "bash" : {
16+ "path" : " /bin/bash"
17+ }
18+ },
19+ "python.pythonPath" : " /usr/local/bin/python" ,
20+ "python.languageServer" : " Pylance" ,
21+ "python.linting.enabled" : true ,
22+ "python.linting.pylintEnabled" : true ,
23+ "python.formatting.autopep8Path" : " /usr/local/py-utils/bin/autopep8" ,
24+ "python.formatting.blackPath" : " /usr/local/py-utils/bin/black" ,
25+ "python.formatting.yapfPath" : " /usr/local/py-utils/bin/yapf" ,
26+ "python.formatting.provider" : " black" ,
27+ "python.analysis.typeCheckingMode" : " basic" ,
28+ "python.linting.banditPath" : " /usr/local/py-utils/bin/bandit" ,
29+ "python.linting.mypyPath" : " /usr/local/py-utils/bin/mypy" ,
30+ "python.linting.pycodestylePath" : " /usr/local/py-utils/bin/pycodestyle" ,
31+ "python.linting.pydocstylePath" : " /usr/local/py-utils/bin/pydocstyle" ,
32+ "python.linting.pylintPath" : " /usr/local/py-utils/bin/pylint" ,
33+ "python.testing.pytestPath" : " /usr/local/py-utils/bin/pytest" ,
34+ "python.testing.unittestEnabled" : false ,
35+ "python.testing.pytestEnabled" : true ,
36+ "editor.formatOnSave" : true ,
37+ "editor.renderWhitespace" : " all" ,
38+ "editor.rulers" : [
39+ 88
40+ ],
41+ "licenser.license" : " Custom" ,
42+ "licenser.customHeaderFile" : " /workspace/.devcontainer/license_header.txt"
43+ },
44+ // Add the IDs of extensions you want installed when the container is created.
45+ "extensions" : [
46+ " mikestead.dotenv" ,
47+ " ms-azuretools.vscode-docker" ,
48+ " ms-python.python" ,
49+ " ms-python.isort" ,
50+ " ms-python.vscode-pylance" ,
51+ " ms-toolsai.jupyter" ,
52+ " njpwerner.autodocstring" ,
53+ " redhat.vscode-yaml" ,
54+ " 42crunch.vscode-openapi" ,
55+ " arjun.swagger-viewer" ,
56+ " eamodio.gitlens" ,
57+ " github.vscode-pull-request-github" ,
58+ " streetsidesoftware.code-spell-checker" ,
59+ " yzhang.markdown-all-in-one" ,
60+ " visualstudioexptteam.vscodeintellicode" ,
61+ " ymotongpoo.licenser" ,
62+ " editorconfig.editorconfig" ,
63+ " bierner.markdown-mermaid"
64+ ]
65+ }
66+ },
67+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
68+ // "forwardPorts": [5000, 5432],
69+ // Use 'postCreateCommand' to run commands after the container is created.
70+ "postCreateCommand" : " dev_install" ,
71+ // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
72+ "remoteUser" : " vscode" ,
73+ "features" : {
74+ "ghcr.io/devcontainers/features/docker-in-docker:2" : {
75+ "version" : " latest" ,
76+ "enableNonRootDocker" : " true" ,
77+ "moby" : true ,
78+ "azureDnsAutoDetection" : false
79+ }
80+ }
81+ }
0 commit comments