Skip to content

Commit 02b71cb

Browse files
[python] add default formatter (devcontainers#903)
Co-authored-by: Samruddhi Khandale <skhandale@microsoft.com>
1 parent f5787ee commit 02b71cb

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/python/devcontainer-feature.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "python",
3-
"version": "1.4.2",
3+
"version": "1.5.0",
44
"name": "Python",
55
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/python",
66
"description": "Installs the provided version of Python, as well as PIPX, and other common Python utilities. JupyterLab is conditionally installed with the python feature. Note: May require source code compilation.",
@@ -73,15 +73,19 @@
7373
"vscode": {
7474
"extensions": [
7575
"ms-python.python",
76-
"ms-python.vscode-pylance"
76+
"ms-python.vscode-pylance",
77+
"ms-python.autopep8"
7778
],
7879
"settings": {
79-
"python.defaultInterpreterPath": "/usr/local/python/current/bin/python"
80+
"python.defaultInterpreterPath": "/usr/local/python/current/bin/python",
81+
"[python]": {
82+
"editor.defaultFormatter": "ms-python.autopep8"
83+
}
8084
}
8185
}
8286
},
8387
"installsAfter": [
8488
"ghcr.io/devcontainers/features/common-utils",
8589
"ghcr.io/devcontainers/features/oryx"
8690
]
87-
}
91+
}

0 commit comments

Comments
 (0)