Configure basedpyright settings
This commit is contained in:
9
.vscode/extensions.json
vendored
9
.vscode/extensions.json
vendored
@@ -1,6 +1,15 @@
|
|||||||
{
|
{
|
||||||
"recommendations": [
|
"recommendations": [
|
||||||
"charliermarsh.ruff",
|
"charliermarsh.ruff",
|
||||||
|
"detachhead.basedpyright",
|
||||||
|
"ms-python.debugpy",
|
||||||
|
"ms-python.python",
|
||||||
|
"ms-python.vscode-python-envs",
|
||||||
"tombi-toml.tombi",
|
"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,
|
"editor.formatOnSave": true,
|
||||||
// Use the ruff binary installed in the .venv directory.
|
// Use the ruff binary installed in the .venv directory.
|
||||||
"ruff.importStrategy": "fromEnvironment",
|
"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]": {
|
"[python]": {
|
||||||
"editor.defaultFormatter": "charliermarsh.ruff",
|
"editor.defaultFormatter": "charliermarsh.ruff",
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
|
|||||||
@@ -12,3 +12,10 @@ dependencies = []
|
|||||||
[build-system]
|
[build-system]
|
||||||
requires = ["uv_build>=0.11.32,<0.12.0"]
|
requires = ["uv_build>=0.11.32,<0.12.0"]
|
||||||
build-backend = "uv_build"
|
build-backend = "uv_build"
|
||||||
|
|
||||||
|
[tool.basedpyright]
|
||||||
|
pythonVersion = "3.13"
|
||||||
|
typeCheckingMode = "strict"
|
||||||
|
reportUnusedImport = "none"
|
||||||
|
reportUnusedVariable = "none"
|
||||||
|
reportImplicitStringConcatenation = false
|
||||||
|
|||||||
Reference in New Issue
Block a user