external: make black as default python formatter

Closes: https://github.com/rook/rook/issues/11926

Signed-off-by: parth-gr <paarora@redhat.com>
This commit is contained in:
parth-gr committed 2023-07-14 21:04:42 +05:30
1 parent 949ff26237
commit d7e0ccdfcd
2 files changed
+7 -3

No files matched your search

+2 -2
View File
@@ -1,13 +1,13 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
// List of extensions which should be recommended for users of this workspace.
"recommendations": [
"golang.go",
"redhat.vscode-yaml",
"yzhang.markdown-all-in-one",
"timonwong.shellcheck"
"timonwong.shellcheck",
"ms-python.black-formatter"
],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": []
+5 -1
View File
@@ -8,8 +8,12 @@
"go.lintFlags": [
"--fast"
],
"python.formatting.provider": "black",
"python.formatting.provider": "none",
"python.linting.pylintEnabled": true,
"python.linting.enabled": true,
"markdown.extension.tableFormatter.enabled": false,
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true
},
}