-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
108 lines (98 loc) · 2.04 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
[tool.poetry]
name = "image-text-retrieval"
version = "0.1.0"
description = "A cool repo to experiment with image and text retrieval"
authors = ["paluchasz <[email protected]>"]
readme = "readme.md"
packages = [{ include = "image_text_retrieval" }]
[tool.poetry.dependencies]
python = "^3.10"
torch = "^2.2.1"
pydantic = "^2.6.4"
transformers = "^4.38.2"
numpy = "^1.26.4"
loguru = "^0.7.2"
datasets = "^2.18.0"
pillow = "^10.2.0"
pandas = "^2.2.1"
fastapi = "^0.110.0"
uvicorn = "^0.28.0"
pydantic-settings = "^2.2.1"
more-itertools = "^10.2.0"
scikit-learn = "^1.4.1.post1"
scipy = "^1.12.0"
dvc = "^3.49.0"
streamlit = "^1.33.0"
httpx = "^0.27.0"
python-multipart = "^0.0.9"
[tool.poetry.group.dev.dependencies]
ruff = "^0.3.3"
mypy = "^1.9.0"
black = "^24.3.0"
pre-commit = "^3.6.2"
types-pillow = "^10.2.0.20240311"
[tool.poetry.scripts]
image_text_retrieval_api = "image_text_retrieval.__main__:main"
pre_compute_image_embeddings = "image_text_retrieval.scripts.pre_compute_embeddings:main"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 150
[tool.mypy]
plugins = ["pydantic.mypy"]
follow_imports = "silent"
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = true
check_untyped_defs = true
no_implicit_reexport = true
show_column_numbers = true
disallow_untyped_defs = true
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
warn_untyped_fields = true
[[tool.mypy.overrides]]
module = [
"transformers",
"datasets",
"pandas",
"tqdm",
"scipy.special",
"dvc",
"dvc.api",
"scipy",
"pickle",
]
ignore_missing_imports = true
[tool.ruff]
extend-select = [
"B",
"BLE",
"C4",
"ERA",
"I",
"ICN",
"INP",
"ISC",
"N",
"NPY",
"PGH",
"PIE",
"Q",
"RET",
"RSE",
"RUF",
"S",
"SIM",
"T20",
"TCH",
"TID",
"YTT",
]
ignore = ["E402", "B905", "N818", "S101", "S104"]
show-fixes = true
line-length = 150
target-version = "py39"