-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
102 lines (87 loc) · 2.91 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
[tool.poetry]
name = "kiez"
version = "0.5.0"
description = "Hubness reduced nearest neighbor search for entity alignment with knowledge graph embeddings"
authors = ["Daniel Obraczka <[email protected]>"]
license = "BSD"
readme = "README.md"
repository = "https://github.com/dobraczka/kiez"
documentation = "https://kiez.readthedocs.io/"
keywords = ["embedding","hubness", "knowledge graph", "entity resolution", "approximate nearest neighbor search", "nearest neighbors", "knowledge graph embedding"]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: BSD License",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries"
]
packages = [
{include = "kiez"},
{include = "kiez/py.typed"},
]
[tool.poetry.dependencies]
python = ">=3.8,<4.0"
scikit-learn = ">=0.24.1,<2.0.0"
pandas = "^1.1.5"
joblib = "^1.2.0"
numpy = "^1.21.0"
scipy = "^1.3.2"
class-resolver = ">=0.3"
tqdm = "^4.62.3"
ngt = {version = "^1.8", optional = true}
annoy = {version = "^1.17.0", optional = true}
nmslib = {version = "^2.1.1", optional = true}
Sphinx = {version = "^5.0.0", optional = true}
insegel = {version = "^1.3.1", optional = true}
[tool.poetry.group.dev.dependencies]
ipdb = "^0.13.9"
mypy = "^1.8.0"
pytest = "^7.4.3"
pytest-cov = "^4.1.0"
nox-poetry = "^1.0.0"
pytest-mock = "^3.12.0"
toml = "^0.10.2"
ruff = "^0.1.9"
[tool.poetry.extras]
docs = ["sphinx", "insegel"]
ngt = ["ngt"]
nmslib = ["nmslib"]
annoy = ["annoy"]
[build-system]
build-backend = "poetry.core.masonry.api"
requires = [
"poetry-core>=1",
]
[tool.ruff]
# Same as Black.
line-length = 88
indent-width = 4
# Assume Python 3.8
target-version = "py38"
[tool.ruff.lint]
ignore = ["E111", "E114", "E117", "E501", "D1", "D203", "D213", "D206", "D300", "Q000", "Q001", "Q002", "Q003", "COM812", "COM819", "ISC001","ISC002", "B905", "W191", "PLR0913", "PLR0912"]
select = ["B", "C", "E", "F", "W", "B", "I", "D", "UP", "A", "C4", "T10", "ICN", "PIE", "PYI", "PT", "RET", "SIM", "ERA", "PD", "PGH", "PL", "NPY", "PERF", "RUF"]
[tool.ruff.lint.mccabe]
max-complexity = 18
[tool.ruff.lint.pyupgrade]
# Preserve types, even if a file imports `from __future__ import annotations`.
keep-runtime-typing = true
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
[tool.pytest.ini_options]
markers = [
"faiss: marks tests as containing faiss",
"nng: marks tests as containing nng",
"nmslib: marks tests as containing nmslib",
"annoy: marks tests as containing annoy",
"torch: marks tests as containing torch",
"all: marks tests as containing all libs",
]