Files
Gymnasium/pyproject.toml

43 lines
1.2 KiB
TOML
Raw Normal View History

[tool.pyright]
include = [
2022-09-08 10:10:07 +01:00
"gymnasium/**",
2022-05-09 16:22:49 +01:00
"tests/**"
]
2022-05-09 16:22:49 +01:00
exclude = [
"**/node_modules",
"**/__pycache__",
]
2022-05-09 16:22:49 +01:00
strict = [
]
typeCheckingMode = "basic"
pythonVersion = "3.6"
pythonPlatform = "All"
2022-05-09 16:22:49 +01:00
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
2022-05-09 16:22:49 +01:00
reportPrivateUsage = "warning"
reportUnboundVariable = "warning"
[tool.pytest.ini_options]
2022-09-08 10:10:07 +01:00
# filterwarnings = ['ignore:.*step API.*:DeprecationWarning']