Configure basedpyright settings
This commit is contained in:
9
.vscode/extensions.json
vendored
9
.vscode/extensions.json
vendored
@@ -1,6 +1,15 @@
|
||||
{
|
||||
"recommendations": [
|
||||
"charliermarsh.ruff",
|
||||
"detachhead.basedpyright",
|
||||
"ms-python.debugpy",
|
||||
"ms-python.python",
|
||||
"ms-python.vscode-python-envs",
|
||||
"tombi-toml.tombi",
|
||||
],
|
||||
"unwantedRecommendations": [
|
||||
"ms-python.isort",
|
||||
"ms-python.mypy-type-checker",
|
||||
"ms-python.vscode-pylance",
|
||||
],
|
||||
}
|
||||
|
||||
6
.vscode/settings.json
vendored
6
.vscode/settings.json
vendored
@@ -2,6 +2,12 @@
|
||||
"editor.formatOnSave": true,
|
||||
// Use the ruff binary installed in the .venv directory.
|
||||
"ruff.importStrategy": "fromEnvironment",
|
||||
// Enable BasedPyright to replace Pylance.
|
||||
"basedpyright.disableLanguageServices": false,
|
||||
"basedpyright.analysis.diagnosticMode": "workspace",
|
||||
// Disable Pylance, use basedpyright instead.
|
||||
// Only use the Microsoft python extension for envs and tests.
|
||||
"python.languageServer": "None",
|
||||
"[python]": {
|
||||
"editor.defaultFormatter": "charliermarsh.ruff",
|
||||
"editor.formatOnSave": true,
|
||||
|
||||
Reference in New Issue
Block a user