Skip to content

Commit 0a46f0d

Browse files
feat: Add black & isort extensions
1 parent 7792f83 commit 0a46f0d

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,30 @@
1717
"settings": {
1818
"[python]": {
1919
"editor.wordBasedSuggestions": false,
20-
"editor.defaultFormatter": null,
21-
"editor.formatOnPaste": true,
22-
"editor.formatOnSave": true
20+
"editor.defaultFormatter": "ms-python.black-formatter",
21+
"editor.formatOnSave": true,
22+
"editor.codeActionsOnSave": {
23+
"source.organizeImports": true
24+
}
2325
},
24-
// "python.defaultInterpreterPath": "/usr/local/bin/python",
26+
"isort.args": ["--profile", "black"],
2527
"python.linting.enabled": true,
2628
"python.linting.pylintEnabled": true,
2729
"python.formatting.autopep8Path": "/usr/local/python/bin/autopep8",
28-
"python.formatting.blackPath": "/usr/local/python/bin/black",
30+
// "python.formatting.blackPath": "/usr/local/python/bin/black",
2931
"python.formatting.yapfPath": "/usr/local/python/bin/yapf",
30-
"python.formatting.provider": "black",
32+
"python.formatting.provider": "none",
3133
"python.linting.banditPath": "/usr/local/python/bin/bandit",
3234
"python.linting.flake8Path": "/usr/local/python/bin/flake8",
3335
"python.linting.mypyPath": "/usr/local/python/bin/mypy",
3436
"python.linting.pycodestylePath": "/usr/local/python/bin/pycodestyle",
3537
"python.linting.pydocstylePath": "/usr/local/python/bin/pydocstyle",
36-
"python.linting.pylintPath": "/usr/local/python/bin/pylint",
37-
"isort.path": [
38-
"/usr/local/python/bin/isort"
39-
]
38+
"python.linting.pylintPath": "/usr/local/python/bin/pylint"
4039
},
4140
"extensions": [
42-
"ms-python.python",
43-
"ms-python.isort"
41+
"ms-python.black-formatter",
42+
"ms-python.isort",
43+
"ms-python.python"
4444
]
4545
// "devPort": {}
4646
}

0 commit comments

Comments
 (0)