Skip to content

πŸš€ The fast, Pythonic way to build MCP servers and clients.

chore(ty): pin the checked platform to the one CI uses (#5302) (#5303)

IronMurphy74adff611bac
diff --git a/pyproject.toml b/pyproject.toml
index 92e8798cd..0c360d094 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -169,6 +169,11 @@ exclude = [
[tool.ty.environment]
python-version = "3.10"
+# Pin the platform ty checks against to the one CI uses. Without it ty uses the
+# host platform, and on Windows typeshed's fcntl has no flock/LOCK_EX/LOCK_UN,
+# so tests/utilities/json_schema_type/test_real_world_schemas.py fails the ty
+# hook for Windows contributors while ubuntu-latest stays green.
+python-platform = "linux"
[tool.ty.analysis]
# prefab_ui is the apps SDK and is not installed here.