-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
151 lines (139 loc) · 3.31 KB
/
Copy pathpyproject.toml
File metadata and controls
151 lines (139 loc) · 3.31 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
[project]
name = "qreward"
version = "0.1.7"
description = "[QReward] RewardService Python Client"
readme = "README.md"
requires-python = ">=3.10"
authors = [
{ name = "sunhailin-Leo", email = "[email protected]" },
{ name = "Vignetting", email = "[email protected]" }
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Operating System :: Unix",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
"Typing :: Typed",
]
dependencies = [
"openai>=1.102.0",
"aiohttp>=3.9.0",
"httpx-aiohttp>=0.1.0",
"httpx>=0.27.0",
"aiodns>=3.0.0",
"tenacity>=8.0.0",
"aiolimiter>=1.1.0",
"requests>=2.28.0",
"ujson>=5.7.0",
]
[project.optional-dependencies]
orjson = ["orjson"]
otel = [
"opentelemetry-api>=1.20.0",
"opentelemetry-sdk>=1.20.0",
]
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project.urls]
Homepage = "https://github.com/AQ-MedAI/QReward"
Source = "https://github.com/AQ-MedAI/QReward"
Documentation = "https://github.com/AQ-MedAI/QReward/README.md"
Changelog = "https://github.com/AQ-MedAI/QReward/CHANGELOG.md"
#[project.scripts]
[tool.setuptools.package-data]
"*" = ["py.typed"]
[tool.uv]
dev-dependencies = [
"pytest>=8.3.3",
"pytest-xdist>=3.8.0",
"pytest-asyncio>=0.25.0",
"pytest-cov>=6.1.1",
"coverage>=7.6.0",
"mypy>=1.0.0",
"flake8>=7.3.0",
"black>=25.9.0",
"ruff>=0.13.2"
]
[tool.coverage.run]
branch = true
relative_files = true
parallel = true
source = [
"qreward"
]
omit = [
"setup.py",
"install.py",
"test.py",
"tests/*"
]
[tool.coverage.report]
show_missing = true
precision = 2
exclude_lines = [
'pragma: no cover',
'raise NotImplementedError',
'if TYPE_CHECKING:',
'if typing.TYPE_CHECKING:',
'@overload',
'@typing.overload',
'\(Protocol\):$',
'typing.assert_never',
'$\s*assert_never\(',
'if __name__ == .__main__.:',
'^\s*pass\s*$',
]
omit = [
"setup.py",
"install.py",
"test.py",
"tests/*"
]
[tool.coverage.html]
directory = "htmlcov"
show_contexts = true
omit = [
"setup.py",
"install.py",
"test.py",
"tests/*"
]
[tool.mypy]
allow_redefinition = false
disallow_untyped_defs = true
follow_imports = "normal"
follow_untyped_imports = true
no_implicit_optional = true
show_error_code_links = true
show_error_codes = true
strict = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true
[tool.pytest.ini_options]
pythonpath = "."
addopts = [
"--import-mode=importlib",
"--cov=.",
"--cov-report=term-missing",
"--cov-report=xml",
"--cov-report=html",
"--cov-config=.coveragerc"
]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"