Skip to content

Commit

Permalink
add black formatter extension to dev-container json (#46)
Browse files Browse the repository at this point in the history
Currently, we have to install black-formatter manually after
reloading/rebuilding dev-container, and occasionally, we forget to
re-install this extension that caused formatting issue.

This update will install black-formatter automatically when
rebuilding/creating dev-container.

Co-authored-by: Aldrian Harjati <[email protected]>
  • Loading branch information
aharjati and Aldrian Harjati authored Sep 14, 2023
1 parent 5a9a1cf commit 054c3a1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.black-formatter",
"donjayamanne.python-extension-pack",
"ms-python.isort",
"njpwerner.autodocstring",
Expand All @@ -16,6 +17,10 @@
"littlefoxteam.vscode-python-test-adapter"
],
"settings": {
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true
},
"files.exclude": {
"**/.git": true,
"**/.svn": true,
Expand All @@ -35,7 +40,7 @@
],
"editor.tabSize": 4,
"editor.formatOnSave": true,
"python.formatting.provider": "black",
"python.formatting.provider": "none",
"python.envFile": "${workspaceFolder}/.env",
"editor.codeActionsOnSave": {
"source.organizeImports": true
Expand Down

0 comments on commit 054c3a1

Please sign in to comment.