forked from UKPLab/sentence-transformers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
103 lines (92 loc) · 2.47 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
[project]
name = "sentence-transformers"
version = "3.3.0.dev0"
description = "State-of-the-Art Text Embeddings"
license = { text = "Apache 2.0" }
readme = "README.md"
authors = [
{ name = "Nils Reimers", email = "[email protected]" },
{ name = "Tom Aarsen", email = "[email protected]" },
]
maintainers = [
{ name = "Tom Aarsen", email = "[email protected]" }
]
requires-python = ">=3.8"
keywords = [
"Transformer Networks",
"BERT",
"XLNet",
"sentence embedding",
"PyTorch",
"NLP",
"deep learning",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.8",
"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",
]
dependencies = [
"transformers>=4.41.0,<5.0.0",
"tqdm",
"torch>=1.11.0",
"scikit-learn",
"scipy",
"huggingface-hub>=0.20.0",
"Pillow",
]
[project.urls]
Homepage = "https://www.SBERT.net"
Repository = "https://github.com/UKPLab/sentence-transformers/"
[project.optional-dependencies]
train = ["datasets", "accelerate>=0.20.3"]
onnx = ["optimum[onnxruntime]>=1.23.1"]
onnx-gpu = ["optimum[onnxruntime-gpu]>=1.23.1"]
openvino = ["optimum-intel[openvino]>=1.20.0"]
dev = ["datasets", "accelerate>=0.20.3", "pre-commit", "pytest", "pytest-cov", "peft"]
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["sentence_transformers*"]
namespaces = false
[tool.ruff]
line-length = 119
fix = true
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP"]
# Skip `E731` (do not assign a lambda expression, use a def)
ignore = [
# LineTooLong
"E501",
# DoNotAssignLambda
"E731"
]
[tool.ruff.lint.per-file-ignores]
"examples/**" = [
# Ignore `E402` (import violations) in all examples
"E402",
# Ignore missing required imports
"I002"
]
"docs/**" = [
# Ignore missing required imports
"I002"
]
[tool.ruff.lint.isort]
known-third-party = ["datasets"]
required-imports = ["from __future__ import annotations"]
[tool.pytest.ini_options]
testpaths = [
"tests"
]
addopts = "--strict-markers -m 'not slow'"
markers = [
"slow: marks tests as slow"
]