2023-06-05 07:40:48 -07:00
|
|
|
[tool.poetry]
|
|
|
|
name = "machine-learning"
|
2023-12-18 20:34:19 -07:00
|
|
|
version = "1.91.4"
|
2023-06-05 07:40:48 -07:00
|
|
|
description = ""
|
|
|
|
authors = ["Hau Tran <alex.tran1502@gmail.com>"]
|
|
|
|
readme = "README.md"
|
|
|
|
packages = [{include = "app"}]
|
|
|
|
|
|
|
|
[tool.poetry.dependencies]
|
2023-12-21 09:54:56 -07:00
|
|
|
python = ">=3.10,<3.12"
|
2023-06-05 07:40:48 -07:00
|
|
|
onnxruntime = "^1.15.0"
|
|
|
|
insightface = "^0.7.3"
|
|
|
|
opencv-python-headless = "^4.7.0.72"
|
|
|
|
pillow = "^9.5.0"
|
|
|
|
fastapi = "^0.95.2"
|
|
|
|
uvicorn = {extras = ["standard"], version = "^0.22.0"}
|
|
|
|
pydantic = "^1.10.8"
|
2023-06-06 18:48:51 -07:00
|
|
|
aiocache = "^0.12.1"
|
2023-08-24 21:28:51 -07:00
|
|
|
rich = "^13.4.2"
|
|
|
|
ftfy = "^6.1.1"
|
|
|
|
setuptools = "^68.0.0"
|
2023-08-29 06:58:00 -07:00
|
|
|
python-multipart = "^0.0.6"
|
|
|
|
orjson = "^3.9.5"
|
2023-08-31 16:30:53 -07:00
|
|
|
gunicorn = "^21.1.0"
|
2023-12-20 18:47:56 -07:00
|
|
|
huggingface-hub = "^0.20.1"
|
|
|
|
tokenizers = "^0.15.0"
|
2023-06-05 07:40:48 -07:00
|
|
|
|
|
|
|
[tool.poetry.group.dev.dependencies]
|
|
|
|
mypy = "^1.3.0"
|
|
|
|
black = "^23.3.0"
|
|
|
|
pytest = "^7.3.1"
|
2023-06-25 11:20:45 -07:00
|
|
|
locust = "^2.15.1"
|
2023-06-27 16:21:33 -07:00
|
|
|
httpx = "^0.24.1"
|
|
|
|
pytest-asyncio = "^0.21.0"
|
2023-07-22 13:04:52 -07:00
|
|
|
pytest-cov = "^4.1.0"
|
|
|
|
ruff = "^0.0.272"
|
2023-08-05 19:45:13 -07:00
|
|
|
pytest-mock = "^3.11.1"
|
2023-06-05 07:40:48 -07:00
|
|
|
|
|
|
|
[build-system]
|
|
|
|
requires = ["poetry-core"]
|
|
|
|
build-backend = "poetry.core.masonry.api"
|
|
|
|
|
|
|
|
[tool.mypy]
|
|
|
|
python_version = "3.11"
|
|
|
|
plugins = "pydantic.mypy"
|
|
|
|
follow_imports = "silent"
|
|
|
|
warn_redundant_casts = true
|
|
|
|
disallow_any_generics = true
|
|
|
|
check_untyped_defs = true
|
|
|
|
disallow_untyped_defs = true
|
2023-10-31 03:02:04 -07:00
|
|
|
ignore_missing_imports = true
|
2023-06-05 07:40:48 -07:00
|
|
|
|
|
|
|
[tool.pydantic-mypy]
|
|
|
|
init_forbid_extra = true
|
|
|
|
init_typed = true
|
|
|
|
warn_required_dynamic_aliases = true
|
2023-06-27 16:21:33 -07:00
|
|
|
warn_untyped_fields = true
|
|
|
|
|
|
|
|
[tool.ruff]
|
|
|
|
line-length = 120
|
|
|
|
target-version = "py311"
|
|
|
|
select = ["E", "F", "I"]
|
|
|
|
ignore = ["F401"]
|
|
|
|
|
|
|
|
[tool.ruff.per-file-ignores]
|
|
|
|
"test_main.py" = ["F403"]
|
|
|
|
|
|
|
|
[tool.black]
|
|
|
|
line-length = 120
|
|
|
|
target-version = ['py311']
|