-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
59 lines (52 loc) · 1.31 KB
/
Copy pathpyproject.toml
File metadata and controls
59 lines (52 loc) · 1.31 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
[project]
name = "visual-search"
version = "0.1.0"
description = "Visual search system with TDD - retrieves images similar to query image"
requires-python = ">=3.10"
dependencies = [
"pillow>=10.0.0",
"numpy>=1.24.0",
"torch>=2.0.0",
"torchvision>=0.15.0",
"sentence-transformers>=2.2.0",
"faiss-cpu>=1.7.4",
"pydantic>=2.0.0",
"python-dotenv>=1.0.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.4.0",
"pytest-cov>=4.1.0",
"pytest-mock>=3.11.0",
"pytest-asyncio>=0.21.0",
"black>=23.0.0",
"ruff>=0.1.0",
"mypy>=1.5.0",
]
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["src"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "-v --cov=src/visual_search --cov-report=html --cov-report=term-missing"
markers = [
"unit: Unit tests (fast, isolated)",
"integration: Integration tests (may use I/O)",
"slow: Slow tests (model loading, etc.)",
]
[tool.black]
line-length = 88
target-version = ["py310"]
[tool.ruff]
line-length = 88
select = ["E", "F", "I", "N", "W"]
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true