-
Notifications
You must be signed in to change notification settings - Fork 128
Expand file tree
/
Copy pathpyproject.toml
More file actions
158 lines (147 loc) · 3.77 KB
/
pyproject.toml
File metadata and controls
158 lines (147 loc) · 3.77 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "torch-rechub"
version = "0.5.0"
description = "A lightweight, efficient, and easy-to-use PyTorch recommendation system framework."
readme = "README.md"
license = { text = "MIT" }
authors = [
{ name = "Datawhale", email = "[email protected]" },
]
keywords = [
"recommendation",
"deep-learning",
"pytorch",
"ctr",
"matching",
"ranking",
"multi-task",
"recsys",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
]
requires-python = ">=3.9"
dependencies = [
"torch>=1.10.0",
"accelerate>=1.0.1",
"numpy>=1.19.0",
"pandas>=1.2.0",
"scikit-learn>=0.24.0",
"tqdm>=4.60.0",
"transformers>=4.46.3",
]
[project.optional-dependencies]
annoy = ["annoy>=1.17.2"]
faiss = ["faiss-cpu==1.13.0"]
milvus = ["pymilvus>=2.6.5"]
bigdata = [
"pyarrow>=21,<23",
]
onnx = [
"onnx>=1.14.0",
"onnxruntime>=1.14.0",
"onnxconverter-common>=1.14.0",
]
visualization = [
"torchview>=0.2.6",
"graphviz>=0.20",
]
tracking = [
"wandb>=0.13.0",
"swanlab>=0.1.0",
"tensorboardX>=2.5",
]
dev = [
"pytest>=6.0",
"pytest-cov>=2.0",
"flake8>=3.8.0",
"yapf==0.43.0",
"isort==5.13.2",
"mypy>=0.800",
"pre-commit>=2.20.0",
"bandit>=1.7.0",
"toml>=0.10.2",
"pyarrow-stubs>=20.0",
]
[project.urls]
Homepage = "https://github.com/datawhalechina/torch-rechub"
Documentation = "https://datawhalechina.github.io/torch-rechub/"
Repository = "https://github.com/datawhalechina/torch-rechub.git"
Issues = "https://github.com/datawhalechina/torch-rechub/issues"
# UV 工具配置
[dependency-groups]
dev = [
"pytest>=6.0",
"pytest-cov>=2.0",
"flake8>=3.8.0",
"yapf==0.43.0",
"isort==5.13.2",
"mypy>=0.800",
"pre-commit>=2.20.0",
"bandit>=1.7.0",
"toml>=0.10.2",
"jupyter>=1.0.0",
"notebook>=6.0.0",
]
# 工具配置
[tool.hatch.build.targets.wheel]
packages = ["torch_rechub"]
[tool.isort]
profile = "black"
line_length = 248
known_third_party = ["torch", "numpy", "pandas", "sklearn", "tqdm"]
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
skip_glob = ["**/migrations/*", "**/__pycache__/*"]
[tool.yapf]
based_on_style = "google"
column_limit = 248
join_multiple_lines = false
split_all_comma_separated_values = true
split_before_logical_operator = true
dedent_closing_brackets = true
align_closing_bracket_with_visual_indent = true
indent_width = 4
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q --strict-markers"
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests",
"unit: marks tests as unit tests",
]
[tool.coverage.run]
source = ["torch_rechub"]
omit = ["*/tests/*", "*/examples/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if __name__ == .__main__.:",
"raise AssertionError",
"raise NotImplementedError",
]
[tool.mypy]
python_version = "3.9"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
ignore_missing_imports = true