Skip to content

Commit

Permalink
Add Black formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanLua authored Jul 24, 2024
1 parent 3a4fd61 commit 10e35e0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye",

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
"features": {
"ghcr.io/devcontainers-contrib/features/black:2": {},
"ghcr.io/devcontainers-contrib/features/pylint:2": {}
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
Expand All @@ -17,7 +19,8 @@
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.pylint"
"ms-python.pylint",
"ms-python.black-formatter"
]
}
}
Expand Down
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"recommendations": [
"ms-python.python",
"ms-python.pylint"
"ms-python.pylint",
"ms-python.black-formatter"
]
}

0 comments on commit 10e35e0

Please sign in to comment.