File: pyrightconfig.testcases.json

package info (click to toggle)
python-django-stubs 5.2.9-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,832 kB
  • sloc: python: 5,185; makefile: 15; sh: 8
file content (23 lines) | stat: -rw-r--r-- 1,085 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
    "$schema": "https://raw.githubusercontent.com/microsoft/pyright/main/packages/vscode-pyright/schemas/pyrightconfig.schema.json",
    "include": [
        "tests/assert_type/"
    ],
    "typeCheckingMode": "strict",
    // Extra strict settings
    "reportShadowedImports": "error", // Don't accidentally name a file something that shadows stdlib
    "reportImplicitStringConcatenation": "error",
    "reportUninitializedInstanceVariable": "error",
    "reportUnnecessaryTypeIgnoreComment": "error",
    // Don't use '# type: ignore' to suppress with pyright
    "enableTypeIgnoreComments": false,
    // If a test case uses this anti-pattern, there's likely a reason and annoying to `type: ignore`.
    // Let Ruff flag it (B006)
    "reportCallInDefaultInitializer": "none",
    // Too strict and not needed for type testing
    "reportMissingSuperCall": "none",
    // Stubs are allowed to use private variables. We may want to test those.
    "reportPrivateUsage": "none",
    // Stubs don't need the actual modules to be installed
    "reportMissingModuleSource": "none",
}