dazzling-france-1358
07/25/2024, 6:01 PMpants check ::
on files that I know have wrong imports, however check comes back saying there are no issues.
However, If i use mypy instead, it reports errors. I cannot seem to figure out how the configuration is different when running mypy through Pants 😕
Here are the relavant pants.toml
sections
[GLOBAL]
pants_version = "2.21.0"
colors=true
backend_packages = [
"pants.backend.docker",
"pants.backend.python",
"pants.backend.shell",
"pants.backend.python.typecheck.mypy",
"pants.backend.experimental.python.lint.ruff.format",
"pants.backend.experimental.python.lint.ruff.check",
"pants.backend.experimental.python",
"pants.backend.python.lint.isort"
]
[source]
root_patterns = ["src", "tests"]
[python]
pip_version = "24.0"
interpreter_constraints = [">=3.10,<3.11"]
enable_resolves = true
[python-infer]
use_rust_parser = true
and pyproject.toml
[tool.mypy]
<#C01CQHVDMMW|> = []
strict = true
implicit_reexport = true
disallow_untyped_decorators = false
[[tool.mypy.overrides]]
module = [
"faceoff_backend.*",
"boto3.*",
"botocore.*",
"ddtrace",
"fsspec.*",
"PyOpenColorIO.*",
"ffmpeg.*",
"opentimelineio.*",
"Imath.*",
"OpenEXR.*",
"sortedcontainers.*",
"requests.*"
]
ignore_missing_imports = true
ignore_errors = false
happy-kitchen-89482
07/25/2024, 6:08 PMdazzling-france-1358
07/25/2024, 6:19 PMconfig_discovery = false
does result in the behaviour I expect, but introduces other errors that are sorted by using the overrides in pyproject.toml 🙂dazzling-france-1358
07/25/2024, 6:21 PMfamous-kite-46295
07/25/2024, 7:58 PMoverrides in pyproject.tomlwhat mypy-related overrides can you do in pyproject.toml?
steep-eve-20716
07/25/2024, 8:27 PM