Skip to content

Instantly share code, notes, and snippets.

@minhnguyent546
Last active May 29, 2025 03:08
Show Gist options
  • Select an option

  • Save minhnguyent546/7b9f8cf6f54a16d94360724f6c314080 to your computer and use it in GitHub Desktop.

Select an option

Save minhnguyent546/7b9f8cf6f54a16d94360724f6c314080 to your computer and use it in GitHub Desktop.
My pyrightconfig.json
{
"$schema": "https://raw.githubusercontent.com/microsoft/pyright/main/packages/vscode-pyright/schemas/pyrightconfig.schema.json",
"pythonVersion": "3.10",
"venv": ".venv", // path to `venv` or `conda env`
"venvPath": ".",
"typeCheckingMode": "strict",
// disable some settings for incomplete stubs
"reportIncompleteStub": "none",
"reportMissingParameterType": "none",
"reportUnknownMemberType": "none",
"reportUnknownParameterType": "none",
"reportUnknownVariableType": "none",
// moderate some settings
"reportMissingTypeStubs": "none",
"reportUnusedClass": "warning",
"reportUnusedImport": "warning",
"reportUnusedFunction": "warning",
"reportUnusedVariable": "warning",
"reportUnknownArgumentType": "none",
// enable some strict settings
"reportCallInDefaultInitializer": "error",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment