Skip to content
This repository was archived by the owner on Jan 2, 2026. It is now read-only.

Commit 8e4cc3e

Browse files
committed
feat: add Pyright type checker configuration
Strict type checking config with relaxed settings for tests. Matches mypy strict mode with additional Pyright-specific rules.
1 parent 9b2950d commit 8e4cc3e

1 file changed

Lines changed: 82 additions & 0 deletions

File tree

pyrightconfig.json

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
{
2+
"include": ["src", "tests", "hooks", "commands"],
3+
"exclude": [
4+
"**/__pycache__",
5+
".venv",
6+
".git",
7+
".mypy_cache",
8+
".pytest_cache",
9+
".ruff_cache",
10+
"dist",
11+
"build"
12+
],
13+
"pythonVersion": "3.11",
14+
"pythonPlatform": "All",
15+
"venvPath": ".",
16+
"venv": ".venv",
17+
"typeCheckingMode": "strict",
18+
"reportMissingImports": true,
19+
"reportMissingTypeStubs": false,
20+
"reportUnusedImport": true,
21+
"reportUnusedClass": true,
22+
"reportUnusedFunction": true,
23+
"reportUnusedVariable": true,
24+
"reportDuplicateImport": true,
25+
"reportPrivateUsage": true,
26+
"reportConstantRedefinition": true,
27+
"reportIncompatibleMethodOverride": true,
28+
"reportIncompatibleVariableOverride": true,
29+
"reportInvalidStringEscapeSequence": true,
30+
"reportUnknownParameterType": true,
31+
"reportUnknownArgumentType": true,
32+
"reportUnknownLambdaType": true,
33+
"reportUnknownVariableType": true,
34+
"reportUnknownMemberType": true,
35+
"reportMissingParameterType": true,
36+
"reportMissingTypeArgument": true,
37+
"reportUnnecessaryIsInstance": true,
38+
"reportUnnecessaryCast": true,
39+
"reportUnnecessaryComparison": true,
40+
"reportAssertAlwaysTrue": true,
41+
"reportSelfClsParameterName": true,
42+
"reportImplicitStringConcatenation": false,
43+
"reportUndefinedVariable": true,
44+
"reportUnboundVariable": true,
45+
"reportOptionalSubscript": true,
46+
"reportOptionalMemberAccess": true,
47+
"reportOptionalCall": true,
48+
"reportOptionalIterable": true,
49+
"reportOptionalContextManager": true,
50+
"reportOptionalOperand": true,
51+
"reportTypedDictNotRequiredAccess": true,
52+
"reportGeneralTypeIssues": true,
53+
"reportPropertyTypeMismatch": true,
54+
"reportFunctionMemberAccess": true,
55+
"reportInvalidTypeVarUse": true,
56+
"reportCallInDefaultInitializer": true,
57+
"reportUnnecessaryTypeIgnoreComment": true,
58+
"reportDeprecated": true,
59+
"reportUnsupportedDunderAll": false,
60+
"executionEnvironments": [
61+
{
62+
"root": "src/git_notes_memory",
63+
"extraPaths": ["src"],
64+
"reportUnknownMemberType": "warning"
65+
},
66+
{
67+
"root": "tests",
68+
"extraPaths": ["src"],
69+
"typeCheckingMode": "basic",
70+
"reportUnknownMemberType": false,
71+
"reportUnknownArgumentType": false,
72+
"reportUnknownVariableType": false,
73+
"reportUnknownParameterType": false,
74+
"reportUnknownLambdaType": false,
75+
"reportMissingParameterType": false,
76+
"reportMissingTypeArgument": false,
77+
"reportPrivateUsage": false,
78+
"reportUnusedVariable": false,
79+
"reportUnusedImport": false
80+
}
81+
]
82+
}

0 commit comments

Comments
 (0)