-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
73 lines (63 loc) · 1.34 KB
/
pyproject.toml
File metadata and controls
73 lines (63 loc) · 1.34 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
[project]
name = "frink-embeddings-web"
version = "0.1.0"
description = "Frink Embeddings Web"
readme = "README.md"
license = "MIT"
authors = [
{ name = "Patrick Golden", email = "ptgolden@email.unc.edu" }
]
requires-python = ">=3.12"
dependencies = [
"flask>=3.1.2",
"gunicorn>=23.0.0",
"pydantic>=2.11.9",
"qdrant-client>=1.15.1",
"sentence-transformers>=5.1.1",
"torch>=2.7.0",
"torchvision==0.23.0",
]
[project.scripts]
frink-embeddings-web = "frink_embeddings_web:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.uv.sources]
torch = [
{ index = "pytorch-cpu" },
]
torchvision = [
{ index = "pytorch-cpu" },
]
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true
[tool.hatch.build.targets.wheel]
packages = ["src/frink_embeddings_web"]
[dependency-groups]
dev = [
"ruff>=0.14.1",
]
[tool.ruff]
target-version = "py312"
line-length = 80
include = [
"src/**/*.py",
]
[tool.ruff.lint]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
# Select or ignore from https://beta.ruff.rs/docs/rules/
select = [
"B", # bugbear
"E", # pycodestyle errors
"F", # Pyflakes
"I", # isort
"S", # flake8-bandit
"W", # Warning
]
extend-ignore = [
"S101", # `assert`
]
unfixable = []