-
Notifications
You must be signed in to change notification settings - Fork 94
Expand file tree
/
Copy pathpyproject.toml
More file actions
114 lines (105 loc) · 2.88 KB
/
pyproject.toml
File metadata and controls
114 lines (105 loc) · 2.88 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# Project metadata
[tool.poetry]
name = "multilevel-video-understanding"
version = "0.1.0"
description = "A microservice for intelligent video understanding based multi-level processing."
authors = []
readme = "README.md"
packages = [{include = "video_analyzer"}]
# ------------------------------------------------------------
# Runtime dependencies
# ------------------------------------------------------------
[tool.poetry.dependencies]
python = "^3.10"
Pillow = "11.3.0"
transformers = "^4.53.1"
fastapi = "^0.121.1"
uvicorn = "^0.32.1"
gunicorn = "^23.0.0"
python-multipart = "^0.0.18"
pydantic = "^2.11.5"
pydantic-settings = "^2.9.1"
setuptools = "^80.9.0"
decord = "^0.6.0"
openai = "^1.93.1"
starlette = "^0.49.1"
urllib3 = "^2.6.3"
pytest = "^8.0.0"
huggingface-hub = {version = "^0.30.2", extras = ["hf_xet"]}
# ------------------------------------------------------------
# Optional package sources (e.g., private PyPI mirrors)
# ------------------------------------------------------------
# [[tool.poetry.source]]
# name = "pypi"
# url = "https://pypi.org/simple"
# default = true
# ------------------------------------------------------------
# Black configuration (code formatter)
# ------------------------------------------------------------
[tool.black]
line-length = 88
target-version = ["py39"]
skip-string-normalization = false
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
# ------------------------------------------------------------
# isort configuration (import sorter)
# ------------------------------------------------------------
[tool.isort]
profile = "black"
line_length = 88
# ------------------------------------------------------------
# mypy configuration (static type checker)
# ------------------------------------------------------------
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
# ------------------------------------------------------------
# pytest configuration
# ------------------------------------------------------------
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
python_classes = "Test*"
python_functions = "test_*"
asyncio_mode = "auto"
markers = [
"unit: marks test as a unit test",
"integration: marks test as an integration test",
"api: marks test as an API test"
]
# ------------------------------------------------------------
# coverage configuration
# ------------------------------------------------------------
source = ["video_analyzer"]
omit = [
"*/tests/*",
"*/venv/*",
"*/__init__.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"pass",
"raise ImportError",
]
show_missing = true
fail_under = 80