-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
82 lines (71 loc) · 2.22 KB
/
Copy pathpyproject.toml
File metadata and controls
82 lines (71 loc) · 2.22 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
[project]
name = "PTS"
version = "26.9.0rc42"
description = "Open Targets Pipeline Transformation Stage"
authors = [{ name = "Open Targets Core Team", email = "devs@opentargets.net" }]
readme = "README.md"
requires-python = ">=3.11,<3.14"
license = { text = "Apache-2.0" }
dependencies = [
"loguru>=0.7.3",
"opentargets-otter>=26.9.1",
"pandas>=2.3.3",
"polars[connectorx]>=1.41.2",
"pyspark>=3.5.7",
"openai>=2.41.1",
"openpyxl>=3.1.5",
"numpy>=2.4.4",
"obonet>=1.3.0",
"polars-hash>=0.5.6",
"torch>=2.10.0",
"ontoma>=2.6.0",
"ot-literature",
"transformers>=4.40.0,<5.0.0",
"gcsfs>=2026.2.0",
"pdfplumber>=0.11.9",
"pixeltable-pgserver>=0.6,<0.7",
"clinical-mining",
"huggingface-hub>=0.32.4",
"networkx>=3.6.1",
"xgboost>=3.2.0",
"shap>=0.51.0",
"scikit-learn>=1.7.0",
"skops>=0.11.0",
]
[dependency-groups]
dev = ["ruff>=0.15.17", "ty>=0.0.55"]
test = ["pytest>=9.0.3", "pytest-asyncio>=1.4.0", "pytest-mock>=3.15.1", "pytest-split>=0.11.0"]
[project.optional-dependencies]
baseline_expression = ["pandas<3", "scanpy>=1.10.0", "cellex"]
[tool.uv]
environments = ["sys_platform != 'darwin' or platform_machine != 'x86_64'"]
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true
[tool.uv.sources]
torch = [{ index = "pytorch-cpu" }]
torchvision = [{ index = "pytorch-cpu" }]
ot-literature = { git = "https://github.com/opentargets/ot-literature", tag = "0.1.1" }
clinical-mining = { git = "https://github.com/opentargets/clinical_mining", tag = "0.9.0" }
cellex = { git = "https://github.com/perslab/CELLEX", rev = "119c7ca" }
[project.scripts]
pts = "pts.core:main"
[build-system]
requires = ["uv_build>=0.11.21,<0.12.0"]
build-backend = "uv_build"
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = [
"slow: mark a test as slow (deselect with '-m \"not slow\"')",
"pgserver: starts a real postgres server (deselect with '-m \"not pgserver\"')",
]
[tool.ruff]
extend = "../ruff.toml"
# Fix spark functions being flagged as missing arguments
# https://github.com/astral-sh/ty/issues/2759
[[tool.ty.overrides]]
include = ["src/pts/pyspark/**/*.py", "tests/**/*.py"]
[tool.ty.overrides.rules]
missing-argument = "ignore"
invalid-argument-type = "ignore"