diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 413f690..7052b01 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -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", + ], } diff --git a/.vscode/settings.json b/.vscode/settings.json index 05bc145..934fd58 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -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, diff --git a/pyproject.toml b/pyproject.toml index 081f75d..d355df1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,3 +12,10 @@ dependencies = [] [build-system] requires = ["uv_build>=0.11.32,<0.12.0"] build-backend = "uv_build" + +[tool.basedpyright] +pythonVersion = "3.13" +typeCheckingMode = "strict" +reportUnusedImport = "none" +reportUnusedVariable = "none" +reportImplicitStringConcatenation = false