-
Notifications
You must be signed in to change notification settings - Fork 116
Expand file tree
/
Copy pathpyproject.toml
More file actions
161 lines (147 loc) · 4.34 KB
/
Copy pathpyproject.toml
File metadata and controls
161 lines (147 loc) · 4.34 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
[tool.ruff]
preview = true
line-length = 120
fix = true
output-format = "grouped"
extend-exclude = ["utilities/manifests"]
[tool.ruff.lint]
external = ["E402", "E501", "FCN001", "IMG001", "IMG002", "IMG003", "UFN001"]
[tool.ruff.format]
exclude = [".git", ".venv", ".mypy_cache", ".tox", "__pycache__", "utilities/manifests"]
[tool.mypy]
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
no_implicit_optional = true
show_error_codes = true
warn_unused_ignores = true
ignore_missing_imports = true
[tool.uv]
override-dependencies = [
"marshmallow>=4.0",
]
# Add IBM Power wheels repository for ppc64le architecture
[[tool.uv.index]]
name = "ibm-power-wheels"
url = "https://wheels.developerfirst.ibm.com/ppc64le/linux/+simple/"
explicit = true
[tool.uv.sources]
pyarrow = [
{ index = "ibm-power-wheels", marker = "platform_machine == 'ppc64le'" },
{ index = "pypi", marker = "platform_machine != 'ppc64le'" },
]
numpy = [
{ index = "ibm-power-wheels", marker = "platform_machine == 'ppc64le'" },
{ index = "pypi", marker = "platform_machine != 'ppc64le'" },
]
scipy = [
{ index = "ibm-power-wheels", marker = "platform_machine == 'ppc64le'" },
{ index = "pypi", marker = "platform_machine != 'ppc64le'" },
]
scikit-learn = [
{ index = "ibm-power-wheels", marker = "platform_machine == 'ppc64le'" },
{ index = "pypi", marker = "platform_machine != 'ppc64le'" },
]
grpcio = [
{ index = "ibm-power-wheels", marker = "platform_machine == 'ppc64le'" },
{ index = "pypi", marker = "platform_machine != 'ppc64le'" },
]
pynacl = [
{ index = "ibm-power-wheels", marker = "platform_machine == 'ppc64le'" },
{ index = "pypi", marker = "platform_machine != 'ppc64le'" },
]
[[tool.uv.index]]
name = "pypi"
url = "https://pypi.org/simple/"
default = true
[tool.pyrefly]
preset = "legacy" # Start mypy-compatible, tighten later
python-version = "3.14"
ignore-missing-imports = ["*"] # Match mypy ignore_missing_imports
permissive-ignores = true # Respect mypy ignore comments during transition
# Exclude patterns matching pre-commit config
project-excludes = [
"**/docs/**",
"**/*test*.py", # Tests have 700+ errors (fixtures, mocks, dynamic types)
"**/utilities/manifests/**",
"**/utilities/plugins/tgis_grpc*", # Includes tgis_grpc/ dir and tgis_grpc_plugin.py
"**/__pycache__/**",
"**/.mypy_cache/**",
"**/.ruff_cache/**",
"**/.venv/**",
"**/.tox/**",
]
[tool.pyrefly.errors]
# Start permissive to match mypy behavior
missing-import = false # Covered by ignore-missing-imports
[dependency-groups]
dev = [
"ipdb>=0.13.13",
"ipython>=8.12.3",
"pre-commit>=4.3.0",
"pyrefly>=1.0",
]
[project]
requires-python = "==3.14.*"
name = "opendatahub-tests"
version = "0.1.0"
description = "Tests repository for Open Data Hub (ODH)"
authors = []
license = {text = "Apache License (2.0)"}
readme = "README.md"
keywords = ["Openshift", "RHOAI", "ODH"]
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]
dependencies = [
"bcrypt>=4.0.0",
"cryptography>=43.0.0",
"ipython>=8.18.1",
"model-registry[signing]>=0.2.13",
"openshift-python-utilities>=5.0.71",
"pytest-dependency>=0.6.0",
"pytest-progress",
"structlog>=24.1.0",
"pyyaml",
"pyarrow>=23.0.0",
"tenacity",
"types-requests>=2.32.0.20241016",
"requests",
"fastmcp>=3.4.0", # Used only as an MCP client to interact with MCP servers in tests
"pytest-asyncio",
"syrupy",
"protobuf",
"grpcio>=1.60.0,<1.81.0",
"grpcio-reflection>=1.60.0,<1.81.0",
"grpcio-reflection",
"portforward>=0.7.1",
"pynacl>=1.5.0",
"pytest-testconfig>=0.2.0",
"pygithub>=2.5.0",
"timeout-sampler>=1.0.6",
"shortuuid>=1.0.13",
"jira>=3.8.0",
"openshift-python-wrapper>=11.0.132",
"semver>=3.0.4",
"sqlalchemy>=2.0.40",
"pytest-order>=1.3.0",
"marshmallow>=4.0",
"pytest-html>=4.1.1",
"fire",
"ogx_client==1.1.3",
"pytest-xdist==3.8.0",
"dictdiffer>=0.9.0",
"pytest>=9.0.0",
"huggingface-hub>=1.2.3",
"openai>=2.36",
"ragas>=0.4",
"numpy>=2.1.0,<2.5.0",
"scipy>=1.13.0,<1.18.0",
"langchain-community<0.4.2",
"ipykernel>=7.3.0",
"boto3>=1.43.33",
]
[project.urls]
homepage = "https://github.com/opendatahub-io/opendatahub-tests"