mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-08 20:43:25 +08:00
Configure Ruff for VSCode (#10572)
This commit is contained in:
9
.vscode/settings.default.json
vendored
9
.vscode/settings.default.json
vendored
@@ -5,7 +5,6 @@
|
||||
*
|
||||
* ⚠ Disclaimer: The typeshed team doesn't commit to maintaining this file. It exists purely for your ease of use.
|
||||
*/
|
||||
// TODO: Add charliermarsh.ruff to unrecommended extensions
|
||||
{
|
||||
// Don't format on save for formatters we don't explicitely control
|
||||
"editor.formatOnSave": false,
|
||||
@@ -22,7 +21,8 @@
|
||||
"pytype_exclude_list.txt": "properties"
|
||||
},
|
||||
"files.exclude": {
|
||||
"**/.mypy_cache": true
|
||||
"**/.*_cache": true, // mypy and Ruff cache
|
||||
"**/__pycache__": true
|
||||
},
|
||||
"files.insertFinalNewline": true,
|
||||
"files.trimFinalNewlines": true,
|
||||
@@ -48,6 +48,7 @@
|
||||
"editor.formatOnSave": true,
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.fixAll": true,
|
||||
// Allow isort or Ruff to organize imports
|
||||
"source.organizeImports": true
|
||||
}
|
||||
},
|
||||
@@ -110,6 +111,10 @@
|
||||
"isort.check": true,
|
||||
"isort.importStrategy": "fromEnvironment",
|
||||
"black-formatter.importStrategy": "fromEnvironment",
|
||||
"ruff.importStrategy": "fromEnvironment",
|
||||
"ruff.fixAll": true,
|
||||
// Conflict between Ruff and isort
|
||||
"ruff.organizeImports": false,
|
||||
"evenBetterToml.formatter.alignComments": false,
|
||||
"evenBetterToml.formatter.alignEntries": false,
|
||||
"evenBetterToml.formatter.allowedBlankLines": 1,
|
||||
|
||||
Reference in New Issue
Block a user