Configure basedpyright settings

This commit is contained in:
Xury Greer
2026-08-08 16:13:03 -07:00
parent 63b9198440
commit 476242734b
3 changed files with 22 additions and 0 deletions

View File

@@ -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",
],
}

View File

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