mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-09 13:02:22 +08:00
Typecheck typeshed's code with pyright (#9793)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
24
pyrightconfig.scripts_and_tests.json
Normal file
24
pyrightconfig.scripts_and_tests.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/microsoft/pyright/main/packages/vscode-pyright/schemas/pyrightconfig.schema.json",
|
||||
"typeshedPath": ".",
|
||||
"include": [
|
||||
"scripts",
|
||||
"tests",
|
||||
],
|
||||
"typeCheckingMode": "strict",
|
||||
// Runtime libraries used by typeshed are not all py.typed
|
||||
"useLibraryCodeForTypes": true,
|
||||
// More of a lint. Unwanted for typeshed's own code.
|
||||
"reportImplicitStringConcatenation": "none",
|
||||
// Extra strict settings
|
||||
"reportMissingModuleSource": "error",
|
||||
"reportShadowedImports": "error",
|
||||
"reportCallInDefaultInitializer": "error",
|
||||
"reportPropertyTypeMismatch": "error",
|
||||
"reportUninitializedInstanceVariable": "error",
|
||||
"reportUnnecessaryTypeIgnoreComment": "error",
|
||||
// Leave "type: ignore" comments to mypy
|
||||
"enableTypeIgnoreComments": false,
|
||||
// Too strict
|
||||
"reportMissingSuperCall": "none",
|
||||
}
|
||||
Reference in New Issue
Block a user