[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