Spaces:
Sleeping
Sleeping
File size: 977 Bytes
5a5e912 12db3c1 5a5e912 |
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 |
[project]
name = "text2vector"
version = "1.0.0"
description = "API to call an embedding model"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"black>=25.9.0",
"fastapi>=0.119.0",
"httpx>=0.28.1",
"mypy>=1.18.2",
"pydantic>=2.12.0",
"pytest>=8.4.2",
"ruff>=0.14.0",
"torch>=2.8.0",
"transformers>=4.57.0",
"uvicorn>=0.37.0",
]
# https://quantlane.com/blog/type-checking-large-codebase/
[tool.mypy]
# Ensure full coverage
disallow_untyped_calls = false
disallow_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_decorators = false
check_untyped_defs = true
# Restrict dynamic typing
disallow_any_generics = false
disallow_subclassing_any = false
warn_return_any = false
# Know exactly what you're doing
warn_redundant_casts = true
warn_unused_ignores = false
warn_unused_configs = true
warn_unreachable = true
show_error_codes = true
# Explicit is better than implicit
no_implicit_optional = true |