rok commented on code in PR #55264:
URL: https://github.com/apache/arrow/pull/55264#discussion_r4526124788


##########
python/pyproject.toml:
##########
@@ -149,3 +174,32 @@ exclude = [
     "examples",
     "scripts",
 ]
+
+# numpy, pandas and scipy are optional dependencies. A `ty: ignore` comment on
+# their imports would be reported as unused whenever they are installed.
+[[tool.ty.overrides]]
+include = ["pyarrow-stubs/pyarrow/**"]
+[tool.ty.overrides.rules]
+unresolved-import = "ignore"
+
+# ty doesn't honor `# type: ignore[<mypy code>]` comments, so disable the
+# rules that those comments suppress for mypy.
+[[tool.ty.overrides]]
+include = ["pyarrow-stubs/pyarrow/__lib/array.pyi"]
+[tool.ty.overrides.rules]
+# Some array classes override methods with a different signature at runtime.
+invalid-method-override = "ignore"
+
+[[tool.ty.overrides]]
+include = ["pyarrow-stubs/tests/**"]
+[tool.ty.overrides.rules]
+# mypy and pyright check that the invalid usage in the tests is rejected.
+invalid-argument-type = "ignore"
+
+# Lints and formats the type stubs (*.pyi); see .pre-commit-config.yaml.
+[tool.ruff]
+line-length = 88

Review Comment:
   See 
https://github.com/apache/arrow/pull/55264/changes/c7d1d97759d4c68628ab42dbbe98b21bf3ed4aa0



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to