diff --git a/python/pyproject.toml b/python/pyproject.toml index fd013d258be..99fd0710d9a 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -243,6 +243,7 @@ follow_imports_for_stubs = true # ty (preview) over tests + samples. Relaxed: ty's defaults are gradual, and a few # categories are too noisy on test/mock-heavy code to gate on yet. [tool.ty.rules] +call-non-callable = "warn" unused-ignore-comment = "ignore" unused-type-ignore-comment = "ignore" diff --git a/python/scripts/workspace_poe_tasks.py b/python/scripts/workspace_poe_tasks.py index 1d0d07dcf6c..e5ed9595bba 100644 --- a/python/scripts/workspace_poe_tasks.py +++ b/python/scripts/workspace_poe_tasks.py @@ -404,7 +404,7 @@ def _pyrefly_command(paths: list[str], *, samples: bool) -> list[str]: def _ty_command(paths: list[str], *, samples: bool) -> list[str]: - command = ["uv", "run", "ty", "check"] + command = ["uv", "run", "ty", "check", "--exit-zero-on-warning"] if samples: command.extend(["--config-file", "ty.samples.toml"]) for excluded in SAMPLE_TYPING_EXCLUDES: