-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathpyrightconfig.json
More file actions
37 lines (37 loc) · 1.86 KB
/
Copy pathpyrightconfig.json
File metadata and controls
37 lines (37 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
"pythonVersion": "3.10",
"pythonPlatform": "Linux",
// Pin the strictness explicitly. pyright defaults to "standard" but
// basedpyright (what the editor extension runs) defaults to "recommended",
// which adds reportUnknown*/reportUnannotatedClassAttribute/reportUnusedCallResult
// and buries the real diagnostics: 359 findings on brain/agent.py under
// "recommended" vs 10 under "standard". Unpinned, every contributor's editor
// disagreed with this file's own "clean under standard mode" premise below.
"typeCheckingMode": "standard",
// Scoped to the tree that is actually clean under standard mode: the skills
// API and the skills written against it. Unscoped, pyright checks all 291
// files in the repo and reports ~230 real diagnostics from code that was
// never typed — burying the ones a skill author needs to see. Add paths
// here as they get cleaned (test/ and the rest of ros2_ws are not yet).
"include": [
"ros2_ws/src/brain/brain_client/brain_client/skills",
"ros2_ws/src/brain/brain_client/innate",
"workspace/innate_skills"
],
"extraPaths": [
"workspace",
"ros2_ws/src/brain/brain_client",
"ros2_ws/src/cloud/clients/proxy-client",
"ros2_ws/install/brain_client/local/lib/python3.10/dist-packages",
"ros2_ws/install/brain_messages/local/lib/python3.10/dist-packages",
"ros2_ws/install/innate_cloud_msgs/local/lib/python3.10/dist-packages",
"ros2_ws/install/mars_msgs/local/lib/python3.10/dist-packages",
"/opt/ros/humble/lib/python3.10/site-packages",
"/opt/ros/humble/local/lib/python3.10/dist-packages",
// System site-packages (pydantic, etc.). Needed when the language server
// has no usable interpreter and would otherwise only see the paths above.
"/usr/local/lib/python3.10/dist-packages",
"/usr/lib/python3/dist-packages",
"/usr/lib/python3.10/dist-packages"
]
}