mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-02 06:16:32 +00:00
43 lines
1.2 KiB
TOML
43 lines
1.2 KiB
TOML
[tool.pyright]
|
|
|
|
include = [
|
|
"gymnasium/**",
|
|
"tests/**"
|
|
]
|
|
|
|
exclude = [
|
|
"**/node_modules",
|
|
"**/__pycache__",
|
|
]
|
|
|
|
strict = [
|
|
|
|
]
|
|
|
|
typeCheckingMode = "basic"
|
|
pythonVersion = "3.6"
|
|
pythonPlatform = "All"
|
|
typeshedPath = "typeshed"
|
|
enableTypeIgnoreComments = true
|
|
|
|
# This is required as the CI pre-commit does not download the module (i.e. numpy, pygame, box2d)
|
|
# Therefore, we have to ignore missing imports
|
|
reportMissingImports = "none"
|
|
# Some modules are missing type stubs, which is an issue when running pyright locally
|
|
reportMissingTypeStubs = false
|
|
# For warning and error, will raise an error when
|
|
reportInvalidTypeVarUse = "none"
|
|
|
|
# reportUnknownMemberType = "warning" # -> raises 6035 warnings
|
|
# reportUnknownParameterType = "warning" # -> raises 1327 warnings
|
|
# reportUnknownVariableType = "warning" # -> raises 2585 warnings
|
|
# reportUnknownArgumentType = "warning" # -> raises 2104 warnings
|
|
reportGeneralTypeIssues = "none" # -> commented out raises 489 errors
|
|
reportUntypedFunctionDecorator = "none" # -> pytest.mark.parameterize issues
|
|
|
|
reportPrivateUsage = "warning"
|
|
reportUnboundVariable = "warning"
|
|
|
|
[tool.pytest.ini_options]
|
|
# filterwarnings = ['ignore:.*step API.*:DeprecationWarning']
|