-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
203 lines (168 loc) · 5.23 KB
/
pyproject.toml
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0"]
build-backend = "poetry_dynamic_versioning.backend"
[project]
name = "clusx"
description = "Bayesian nonparametric toolkit for text clustering, analysis, and benchmarking with advanced embedding models and statistical validation."
license = "MIT"
license-files = ["LICENSE"]
readme = "README.rst"
requires-python = ">=3.11,<4"
authors = [{ name = "Serghei Iakovlev", email = "[email protected]" }]
dynamic = ["classifiers", "dependencies", "version"]
keywords = [
"clustering",
"text-analysis",
"nlp",
"natural-language-processing",
"machine-learning",
"dirichlet-process",
"pitman-yor-process",
"embeddings",
"sentence-transformers",
"power-law",
"data-science"
]
[project.urls]
Homepage = "https://clusterium.readthedocs.io"
Repository = "https://github.com/sergeyklay/clusterium"
Documentation = "https://clusterium.readthedocs.io/en/latest/index.html"
Changelog = "https://clusterium.readthedocs.io/en/latest/changelog.html"
Issues = "https://github.com/sergeyklay/clusterium/issues"
Download = "https://github.com/sergeyklay/clusterium/releases"
[project.scripts]
clusx = "clusx.cli:main"
[tool.poetry]
requires-poetry = ">=2.0"
packages = [{ include = "clusx" }]
include = [
{ path = "tests", format = "sdist" },
"LICENSE",
"CONTRIBUTING.rst",
"README.rst",
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Text Processing",
"Topic :: Text Processing :: Linguistic",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Typing :: Typed"
]
version = "0.0.0"
[tool.poetry.dependencies]
click = "^8.1.8"
matplotlib = "^3.10.1"
numpy = "^2.2.3"
pandas = "^2.2.3"
powerlaw = "^1.5"
scikit-learn = "^1.6.1"
scipy = "^1.15.2"
sentence-transformers = "^3.4.1"
torch = "^2.3.0"
tqdm = "^4.67.1"
[tool.poetry.group.dev.dependencies]
black = "^25.1.0"
debugpy = "^1.8.13"
flake8 = "^7.1.2"
isort = { version = "^6.0.1", extras = ["colors"] }
pylint = "^3.3.5"
pre-commit = "^4.1.0"
[tool.poetry.group.testing.dependencies]
coverage = { version = "^7.6.12", extras = ["toml"] }
pytest = "^8.3.5"
[tool.poetry.group.docs.dependencies]
sphinx = "^8.2.3"
sphinx-rtd-theme = "^3.0.2"
[tool.poetry.requires-plugins]
poetry-dynamic-versioning = { version = ">=1.0.0,<2.0.0", extras = ["plugin"] }
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
# Disable the local version part (the part after +) for PyPI compatibility
pattern = "^(?P<base>\\d+\\.\\d+\\.\\d+)$"
# Only include metadata for non-tagged versions
format-jinja = "{% if distance == 0 %}{{ base }}{% else %}{{ base }}.dev{{ distance }}{% endif %}"
[tool.pytest.ini_options]
addopts = "--verbose --durations=25 --junitxml=junit.xml -o junit_family=legacy"
[tool.pylint.MAIN]
# Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
# number of processors available to use.
jobs = 0
[tool.pylint."MESSAGES CONTROL"]
# Disable the message, report, category or checker with the given id(s).
disable = [
# This is intentionally due to performance reasons
"import-outside-toplevel",
# Let's delegate this to isort and flake8
"wrong-import-position",
# It's deliberately and by design
"too-many-locals",
"too-many-positional-arguments",
"too-many-arguments",
"too-many-instance-attributes",
# I'm personally fine with this, it's a matter of taste.
# I use TODOs to mark the places that need to be improved.
# It's my tool, not a bug.
"fixme",
]
[tool.black]
line-length = 88
target-version = ["py312"]
extend-exclude = ".poetry"
[tool.isort]
profile = "black"
py_version = 312
skip_gitignore = false
[tool.coverage.report]
# Set the number of decimal places in coverage percentage
precision = 2
# Show lines that were not executed
show_missing = true
# Skip empty files
skip_empty = true
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
]
[tool.coverage.html]
# Directory for the HTML format report
directory = "coverage/html"
[tool.coverage.lcov]
# Filename for the LCOV format report
output = "coverage/lcov/coverage.lcov"
[tool.coverage.xml]
# Filename for the XML format report
output = "coverage/xml/coverage.xml"
[tool.coverage.run]
# Enable branch coverage (default: False)
branch = true
# Run tests in parallel (useful when using CI/CD)
parallel = true
# Filename for storing coverage data
data_file = "coverage/.coverage"
# Omit specified files or directories from the report
omit = [
"*/__pycache__/*",
"*/.poetry/*",
"*/.pytest_cache/*",
"*/.venv/*",
"*/coverage/*",
"*/dist/*",
"*/tests/*",
"*/tmp_*/*",
"/tmp/*",
]