-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
106 lines (93 loc) · 1.94 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
[project]
name = "pyterrier-sentence-transformers"
version = "0.2.2"
description = "Create an pyterrier index using any sentence-transformers model"
authors = [
{name = "Luca Soldaini", email = "[email protected]" },
]
license = {text = "Apache-2.0"}
readme = "README.md"
requires-python = ">=3.8"
dependencies = [
"pandas",
"tensorboardX",
"python-terrier",
"sentence-transformers>=2.2.2,<3.0.0",
"transformers>=4.22.1,<5.0.0",
"necessary>=0.2.3",
"trouting>=0.3.0",
"platformdirs>=2.5.0",
]
[project.urls]
"Homepage" = "https://github.com/soldni/pyterrier_sentence_transformers"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
"pyterrier_sentence_transformers" = ["py.typed", "*.pyi"]
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools >= 61.0.0",
"wheel"
]
[project.optional-dependencies]
dev = [
"black>=22.6.0",
"springs>=1.4.5",
"isort>=5.10.1",
"mypy>=0.971",
"pytest>=5.2",
"ipython>=8.4.0",
"autopep8>=1.7.0",
"flake8>=5.0",
"ipdb>=0.13.0",
"flake8-pyi>=22.8.1",
"Flake8-pyproject>=1.1.0"
]
[tool.black]
line-length = 79
include = '\.pyi?$'
exclude = '''
(
__pycache__
| \.git
| \.mypy_cache
| \.pytest_cache
| \.vscode
| \.venv
| \bdist\b
| \bdoc\b
| \bfaiss\b
)
'''
[tool.isort]
profile = "black"
line_length = 79
multi_line_output = 3
[tool.autopep8]
max_line_length = 79
in-place = true
recursive = true
aggressive = 3
[tool.mypy]
python_version = 3.8
ignore_missing_imports = true
no_site_packages = true
allow_redefinition = false
warn_unused_configs = true
warn_unused_ignores = true
warn_no_return = true
warn_return_any = false
warn_unreachable = true
show_error_codes = true
pretty = true
exclude = 'faiss'
[tool.mypy-tests]
strict_optional = false
[tool.flake8]
per-file-ignores = [
'__init__.py:F401',
'*.pyi:E302,E305',
'*.py:E203'
]
exclude = 'faiss'