Skip to content

Commit

Permalink
Update dev container formatting (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayjb authored Jan 17, 2024
1 parent 27525f5 commit 0bc72f4
Showing 1 changed file with 28 additions and 29 deletions.
57 changes: 28 additions & 29 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,37 +10,36 @@
"remoteEnv": {
"LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}"
},

// Set *default* container specific settings.json values on container create.
"settings": {
"python.pythonPath": "/usr/local/bin/python",
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
"python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf",
"python.linting.banditPath": "/usr/local/py-utils/bin/bandit",
"python.linting.flake8Path": "/usr/local/py-utils/bin/flake8",
"python.linting.mypyPath": "/usr/local/py-utils/bin/mypy",
"python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle",
"python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint"
"customizations": {
"vscode": {
"python.pythonPath": "/usr/local/bin/python",
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
"python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf",
"python.linting.banditPath": "/usr/local/py-utils/bin/bandit",
"python.linting.flake8Path": "/usr/local/py-utils/bin/flake8",
"python.linting.mypyPath": "/usr/local/py-utils/bin/mypy",
"python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle",
"python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint",
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"ms-azuretools.vscode-docker",
"ms-python.python",
"hashicorp.terraform",
"pomdtr.excalidraw-editor",
"eamodio.gitlens",
"njpwerner.autodocstring",
"ms-vsliveshare.vsliveshare",
"streetsidesoftware.code-spell-checker",
"cweijan.vscode-redis-client",
"me-dutour-mathieu.vscode-github-actions"
]
}
},

// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"ms-azuretools.vscode-docker",
"ms-python.python",
"hashicorp.terraform",
"pomdtr.excalidraw-editor",
"eamodio.gitlens",
"njpwerner.autodocstring",
"ms-vsliveshare.vsliveshare",
"streetsidesoftware.code-spell-checker",
"cweijan.vscode-redis-client",
"me-dutour-mathieu.vscode-github-actions"
],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "python -m pip install poetry && poetry install -E 'twisted web' && poetry run pre-commit install && git config --global --add safe.directory /workspace",

Expand Down

0 comments on commit 0bc72f4

Please sign in to comment.