Add rules for Python formatting with ruff
This commit is contained in:
10
.vscode/settings.json
vendored
10
.vscode/settings.json
vendored
@@ -1,5 +1,15 @@
|
||||
{
|
||||
"editor.formatOnSave": true,
|
||||
// Use the ruff binary installed in the .venv directory.
|
||||
"ruff.importStrategy": "fromEnvironment",
|
||||
"[python]": {
|
||||
"editor.defaultFormatter": "charliermarsh.ruff",
|
||||
"editor.formatOnSave": true,
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.fixAll.ruff": "explicit",
|
||||
"source.organizeImports.ruff": "explicit",
|
||||
},
|
||||
},
|
||||
"[toml]": {
|
||||
"editor.defaultFormatter": "tombi-toml.tombi",
|
||||
"editor.formatOnSave": true,
|
||||
|
||||
Reference in New Issue
Block a user