Skip to content

Commit

Permalink
external: make black as default python formatter
Browse files Browse the repository at this point in the history
Closes: rook#11926

Signed-off-by: parth-gr <[email protected]>
  • Loading branch information
parth-gr committed Jul 14, 2023
1 parent 949ff26 commit d7e0ccd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -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": []
Expand Down
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
}

0 comments on commit d7e0ccd

Please sign in to comment.