-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
151 lines (141 loc) · 3.51 KB
/
pyproject.toml
File metadata and controls
151 lines (141 loc) · 3.51 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
[build-system]
requires = ["maturin>=1.7,<2"]
build-backend = "maturin"
[project]
name = "rusket"
version = "0.1.91"
description = "Ultra-fast Recommender Engines & Market Basket Analysis for Python, written in Rust."
readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
dependencies = []
[project.urls]
Homepage = "https://github.com/bmsuisse/rusket"
Repository = "https://github.com/bmsuisse/rusket.git"
[project.optional-dependencies]
polars = ["polars>=0.20"]
pandas = ["numpy>=1.24", "pandas>=2.0"]
docs = ["zensical>=0.0.23", "tabulate>=0.9.0"]
network = ["networkxr>=0.1.0; python_version >= '3.12'"]
tuning = ["optuna>=4.0", "optuna-integration>=4.0"]
mlflow = ["mlflow>=2.0", "optuna-integration[mlflow]>=4.0"]
[tool.maturin]
python-source = "."
module-name = "rusket._rusket"
features = ["pyo3/extension-module"]
exclude = [
"benchmarks/**/*",
"tests/**/*",
"docs/**/*",
"benchdata/**/*",
"data/**/*",
"saved/**/*",
"site/**/*",
"recbole_data/**/*",
"log_tensorboard/**/*",
".github/**/*",
".agents/**/*",
"benches/**/*",
"scripts/**/*",
"examples/**/*",
"uv.lock",
"recbole_test_model_auto.py",
"recbole_tests.json",
"profile_als.dSYM/**/*",
"llm.txt",
"zensical.toml",
"**/__pycache__/**/*",
"**/*.pyc",
]
[dependency-groups]
dev = [
"pytest>=8",
"pytest-timeout>=2.0",
"efficient-apriori>=2.0.6",
"mlxtend>=0.23",
"packaging>=23",
"scipy>=1.11",
"pytest-benchmark>=4",
"polars>=0.20",
"faker>=40.4.0",
"plotly>=6.5.2",
"maturin>=1.12.3",
"pandas>=2.0",
"numpy>=1.24",
"jupytext>=1.19.1",
"jupyter>=1.1.1",
"pyarrow>=23.0.1",
"psutil>=6",
"tqdm>=4",
"pyspark>=4.1.1",
"ruff>=0.15.2",
"basedpyright>=1.38.1",
"zensical>=0.0.23",
"openpyxl>=3.1.5",
"prefixspan>=0.5.2",
"mkdocs>=1.6.1",
"mkdocs-material>=9.7.2",
"mkdocstrings[python]>=1.0.3",
"tabulate>=0.9.0",
"networkxr>=0.1.0; python_version >= '3.12'",
"hypothesis>=6.151.9",
"optuna>=4.0",
"mlflow>=2.0",
"optuna-integration>=4.0",
]
benchmark = [
"LibRecommender>=0.14",
"implicit>=0.7",
"surprise>=0.1",
"recbole>=1.2",
"mlxtend>=0.23",
"scikit-learn>=1.3",
"tensorflow>=2.15",
"torch>=2.0",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
filterwarnings = [
# PySpark internals use copy= which is deprecated in pandas 4.x
# Pandas4Warning only exists in pandas>=2.2; use a message-based filter for broader compat
"ignore:.*copy.*:DeprecationWarning",
# int 0/1 matrices are auto-cast to bool in mine_grouped; suppress upstream warning
"ignore:DataFrames with non-bool types:DeprecationWarning:rusket",
]
[tool.pytest-benchmark]
storage = "file://tests/benchmarks"
disable_gc = true
min_rounds = 3
warmup = false
[tool.basedpyright]
pythonVersion = "3.10"
typeCheckingMode = "basic"
include = ["rusket", "tests"]
venvPath = "."
venv = ".venv"
[tool.ruff]
target-version = "py310"
line-length = 120
exclude = [
"examples/",
"scripts/",
"docs/",
"benchmarks/",
"recbole_test_model_auto.py",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
"UP", # pyupgrade
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"W191", # indentation contains tabs
"C901", # function is too complex
]