Skip to content

Commit e5b5008

Browse files
committed
configure ruff for project
1 parent c1c4c6f commit e5b5008

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.vscode/extensions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"esbenp.prettier-vscode",
55
"sumneko.lua",
66
"nvarner.typst-lsp",
7-
"Posit.air-vscode"
7+
"Posit.air-vscode",
8+
"charliermarsh.ruff"
89
]
910
}

.vscode/settings.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22
"[typescript]": {
33
"editor.defaultFormatter": "denoland.vscode-deno"
44
},
5+
"notebook.formatOnSave.enabled": true,
6+
"notebook.codeActionsOnSave": {
7+
"notebook.source.organizeImports": "explicit"
8+
}
9+
"[python]": {
10+
"editor.formatOnSave": true,
11+
"editor.defaultFormatter": "charliermarsh.ruff",
12+
"editor.codeActionsOnSave": {
13+
"source.organizeImports": "explicit"
14+
}
15+
},
516
"[r]": {
617
"editor.formatOnSave": true,
718
"editor.defaultFormatter": "Posit.air-vscode"

quarto-cli.code-workspace

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,6 @@
3737
"deno.inlayHints.variableTypes.enabled": false,
3838
"deno.inlayHints.variableTypes.suppressWhenTypeMatchesName": false
3939
},
40-
"typst-lsp.exportPdf": "never"
40+
"typst-lsp.exportPdf": "never",
41+
"notebook.formatOnSave.enabled": true
4142
}

0 commit comments

Comments
 (0)