Add rules for Python formatting with ruff

This commit is contained in:
Xury Greer
2026-08-08 16:11:14 -07:00
parent 5962cad103
commit 63b9198440
4 changed files with 19 additions and 0 deletions

10
.vscode/settings.json vendored
View File

@@ -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,