https://github.com/python/typeshed
Raw File
Tip revision: 711958977ffa9a6f981de7763cfa8b3319cbe797 authored by Stephen Finucane on 05 April 2024, 16:47:03 UTC
docutils: Correct 'parsers.rst.directives.format_values' (#11719)
Tip revision: 7119589
pyrightconfig.json
{
    "$schema": "https://raw.githubusercontent.com/microsoft/pyright/main/packages/vscode-pyright/schemas/pyrightconfig.schema.json",
    "typeshedPath": ".",
    "include": [
        "stdlib",
        "stubs",
    ],
    "exclude": [
        // test cases use a custom config file
        "stubs/**/@tests/test_cases"
    ],
    "typeCheckingMode": "strict",
    // Allowed in base settings for incomplete stubs, checked in stricter settings
    "reportIncompleteStub": "none",
    "reportMissingParameterType": "none",
    "reportUnknownMemberType": "none",
    "reportUnknownParameterType": "none",
    "reportUnknownVariableType": "none",
    // Extra strict settings
    "reportCallInDefaultInitializer": "error",
    "reportImplicitStringConcatenation": "error",
    "reportUnnecessaryTypeIgnoreComment": "error",
    // Leave "type: ignore" comments to mypy
    "enableTypeIgnoreComments": false,
    // No effect in stubs
    "reportMissingSuperCall": "none",
    "reportUninitializedInstanceVariable": "none",
    // stdlib stubs trigger reportShadowedImports
    "reportShadowedImports": "none",
    // Stubs are allowed to use private variables
    "reportPrivateUsage": "none",
    // Stubs don't need the actual modules to be installed
    "reportMissingModuleSource": "none",
    // Incompatible overrides and property type mismatches are out of typeshed's control
    // as they are inherited from the implementation.
    "reportIncompatibleMethodOverride": "none",
    "reportIncompatibleVariableOverride": "none",
    "reportPropertyTypeMismatch": "none",
    // Overlapping overloads are often necessary in a stub, meaning pyright's check
    // (which is stricter than mypy's; see mypy issue #10143 and #10157)
    // would cause many false positives and catch few bugs.
    "reportOverlappingOverload": "none",
    // The name of the self/cls parameter is out of typeshed's control.
    "reportSelfClsParameterName": "none",
    // Not actionable in typeshed
    "reportDeprecated": "none",
}
back to top