mirror of
https://github.com/ZGCA-Forge/Elevator.git
synced 2026-02-04 05:15:19 +00:00
update pyright
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
// —— 入口/排除 ——(按你项目结构来)
|
|
||||||
"include": ["."],
|
"include": ["."],
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"build",
|
"build",
|
||||||
@@ -11,29 +10,17 @@
|
|||||||
".idea",
|
".idea",
|
||||||
".vscode",
|
".vscode",
|
||||||
"docs/_build",
|
"docs/_build",
|
||||||
"dypymcp.egg-info",
|
"elevator_saga.egg-info"
|
||||||
".venv_mcp",
|
|
||||||
"logs",
|
|
||||||
"environments",
|
|
||||||
"models"
|
|
||||||
],
|
],
|
||||||
|
|
||||||
// —— 语言/环境设置 ——
|
|
||||||
"pythonVersion": "3.10",
|
"pythonVersion": "3.10",
|
||||||
"typeCheckingMode": "strict",
|
"typeCheckingMode": "strict",
|
||||||
|
|
||||||
// 你的源码在仓库内的额外搜索路径(等价于以前 Pylance 的 include)
|
|
||||||
"executionEnvironments": [
|
"executionEnvironments": [
|
||||||
{
|
{
|
||||||
"root": ".",
|
"root": ".",
|
||||||
"extraPaths": ["dypymcp"]
|
"extraPaths": ["elevator_saga"]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
// —— 与你原 mypy/flake8 诉求相匹配的诊断级别 ——
|
|
||||||
// 忽略三方包的缺失导入(等价于 mypy 的 --ignore-missing-imports)
|
|
||||||
"reportMissingImports": "none",
|
"reportMissingImports": "none",
|
||||||
// 可按需放宽/收紧:
|
|
||||||
"reportUnusedImport": "warning",
|
"reportUnusedImport": "warning",
|
||||||
"reportUnusedVariable": "warning",
|
"reportUnusedVariable": "warning",
|
||||||
"reportUnknownArgumentType": "warning",
|
"reportUnknownArgumentType": "warning",
|
||||||
|
|||||||
Reference in New Issue
Block a user