Skip to content

Commit a038320

Browse files
committed
Configure Ruff to format Python code on-save
1 parent 4da1bb5 commit a038320

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.vscode/settings.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
{
2-
"python.defaultInterpreterPath": "${workspaceFolder}/.venv",
2+
"python.defaultInterpreterPath": "${workspaceFolder}/.venv",
33
"python.testing.pytestArgs": [
44
"tests"
55
],
66
"python.testing.unittestEnabled": false,
7-
"python.testing.pytestEnabled": true
7+
"python.testing.pytestEnabled": true,
8+
"[python]": {
9+
"editor.formatOnSave": true,
10+
"editor.defaultFormatter": "charliermarsh.ruff"
11+
}
812
}

0 commit comments

Comments
 (0)