-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
143 lines (128 loc) · 3.09 KB
/
Copy pathpyproject.toml
File metadata and controls
143 lines (128 loc) · 3.09 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
[build-system]
requires = ["hatchling>=1.24"]
build-backend = "hatchling.build"
[project]
name = "semaclust"
description = "Semantic text clustering using sentence embeddings and agglomerative clustering."
readme = "README.md"
requires-python = ">=3.10"
license = { text = "MIT" }
authors = [{ name = "Mert Cobanov", email = "mertcobanov@gmail.com" }]
keywords = ["nlp", "clustering", "text", "semantic", "embeddings", "sentence-transformers"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Text Processing :: General",
"Typing :: Typed",
]
dynamic = ["version"]
dependencies = [
"numpy>=1.23",
"scikit-learn>=1.2",
"sentence-transformers>=2.2",
"typer>=0.12",
]
[project.optional-dependencies]
dev = [
"mypy>=1.10",
"pre-commit>=3.7",
"pytest>=8.0",
"pytest-cov>=5.0",
"pytest-randomly>=3.15",
"ruff>=0.6",
]
docs = [
"mkdocs-material>=9.5",
"mkdocstrings[python]>=0.25",
]
benchmarks = [
"einops>=0.8.2",
]
[project.scripts]
semaclust = "semaclust.cli:app"
[project.urls]
Homepage = "https://github.com/cobanov/semaclust"
Repository = "https://github.com/cobanov/semaclust"
Issues = "https://github.com/cobanov/semaclust/issues"
Changelog = "https://github.com/cobanov/semaclust/blob/main/CHANGELOG.md"
[tool.hatch.version]
path = "src/semaclust/_version.py"
[tool.hatch.build.targets.wheel]
packages = ["src/semaclust"]
[tool.hatch.build.targets.sdist]
include = [
"src/semaclust",
"tests",
"README.md",
"CHANGELOG.md",
"LICENSE",
"pyproject.toml",
]
[tool.ruff]
line-length = 100
target-version = "py310"
src = ["src", "tests"]
[tool.ruff.lint]
select = [
"E",
"F",
"I",
"B",
"UP",
"N",
"SIM",
"RUF",
"PL",
"PT",
]
ignore = [
"PLR0913",
"PLR2004",
"PLC0415",
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["PLR2004", "S101", "PT011"]
"examples/*" = ["T201", "INP001"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.mypy]
python_version = "3.10"
strict = true
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
ignore_missing_imports = true
files = ["src/semaclust"]
[tool.pytest.ini_options]
minversion = "8.0"
addopts = [
"-ra",
"--strict-config",
"--strict-markers",
"--import-mode=importlib",
]
testpaths = ["tests"]
markers = [
"slow: marks tests as slow (run with '-m slow')",
"integration: tests that load the sentence-transformers model",
]
[tool.coverage.run]
source = ["semaclust"]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
]
show_missing = true