Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
117 lines (100 loc) · 3.41 KB
/
Copy pathpyproject.toml
File metadata and controls
117 lines (100 loc) · 3.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "lance-ray"
version = "0.5.0"
description = "Ray integration for Lance"
readme = "README.md"
requires-python = ">=3.10,<3.14"
license = "Apache-2.0"
license-files = ["LICENSE"]
authors = [{ name = "LanceDB Devs", email = "dev@lancedb.com" }]
keywords = ["ray", "lance", "distributed", "columnar", "data"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"ray[data]>=2.41.0",
"pylance>=12.0.0",
"lance-namespace",
"packaging",
"pyarrow>=17.0.0",
"more_itertools>=2.6.0; python_version<'3.12'",
]
[project.optional-dependencies]
dev = [
"geoarrow-rust-core",
"mypy>=2.3.0",
"pandas-stubs",
# 20260819 is the first release that models ``pc.cast``/``pc.shift_right``
# and ``pa.compute.take``; older stubs need per-call ignores.
"pyarrow-stubs>=20.0.0.20260819",
"pytest>=8.4.0",
"pytest-asyncio>=1.0.0",
"pytest-cov>=5.0.0",
"pytest-xdist>=3.6.0",
"ruff>=0.8.0",
]
docs = [
"mkdocs>=1.5.0",
"mkdocs-material>=9.0.0",
"mkdocs-awesome-pages-plugin>=2.9.0",
]
[project.urls]
Homepage = "https://github.com/lancedb/lance-ray"
Repository = "https://github.com/lancedb/lance-ray"
[tool.setuptools.packages.find]
where = ["."]
include = ["lance_ray*"]
[tool.ruff]
line-length = 88
target-version = "py310"
src = ["lance_ray", "tests", "examples"]
[tool.ruff.lint]
select = ["E", "W", "F", "I", "B", "UP", "SIM"]
ignore = ["E501", "UP045"]
[tool.ruff.format]
quote-style = "double"
[tool.mypy]
# ``python_version`` is deliberately unset: it follows the interpreter mypy runs
# under, so the CI matrix decides which supported Python version is analysed.
strict = true
files = ["lance_ray", "tests", "ci"]
# ``ci`` has no ``__init__.py`` but is imported as ``ci.<module>`` by the tests.
explicit_package_bases = true
mypy_path = "."
enable_error_code = ["ignore-without-code"]
# ``ray`` and ``lance`` ship a py.typed marker but still expose a number of
# unannotated public functions. Calling them is unavoidable, so exempt them
# from ``disallow_untyped_calls`` instead of sprinkling per-call ignores.
untyped_calls_exclude = ["ray", "lance"]
[[tool.mypy.overrides]]
module = ["PIL.*", "geoarrow.*", "more_itertools.*"]
ignore_missing_imports = true
# ``ray`` and ``lance`` ship a py.typed marker but re-export names between
# their modules without ``__all__`` / ``as`` aliases, which ``strict`` rejects.
[[tool.mypy.overrides]]
module = ["lance.*", "ray.*"]
implicit_reexport = true
# ``tests/_utils.py`` and ``tests/_ray_test_support.py`` are checked as part of
# the ``tests`` package, but are imported as top-level modules because Ray
# workers get ``tests/`` prepended to ``sys.path`` instead of the repo root.
[[tool.mypy.overrides]]
module = ["_utils", "_ray_test_support"]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = ["--cov=lance_ray", "--cov-report=term-missing"]
[tool.coverage.run]
source = ["lance_ray"]
omit = ["*/tests/*", "*/__init__.py"]
[tool.uv]
extra-index-url = ["https://pypi.fury.io/lance-format"]
index-strategy = "unsafe-best-match"