-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
79 lines (71 loc) · 3.1 KB
/
pyproject.toml
File metadata and controls
79 lines (71 loc) · 3.1 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
[project]
name = "PerfectFrameAI"
version = "3.0.4"
description = "AI tool for finding the most aesthetic frames in a video. 🎞️➜🖼️"
authors = [
{name = "Bartłomiej Flis", email = "Bartekdawidflis@gmail.com"}
]
license = {text = "Apache-2.0"}
readme = "README.md"
requires-python = ">=3.11,<3.14"
dependencies = [
"fastapi==0.129.0", # API endpoints
"uvicorn==0.40.0", # Server
"opencv-python==4.13.0.92", # Frame extraction
"requests==2.32.5", # Model download
"onnxruntime==1.23.2; sys_platform == 'darwin' or (sys_platform == 'linux' and platform_machine == 'aarch64')",
"onnxruntime-gpu==1.24.1; sys_platform == 'win32' or (sys_platform == 'linux' and platform_machine == 'x86_64')",
"numpy==2.4.1", # Image batch processing
# Security overrides for transitive dependencies
"h11==0.16.0", # CVE fix (uvicorn dep)
"starlette==0.50.0", # CVE fix (fastapi dep)
"urllib3==2.6.3", # CVE fix (requests dep)
"protobuf==6.33.5", # CVE fix (onnxruntime dep)
]
[dependency-groups]
dev = [
"ruff>=0.14.14", # Linter and formatter
"ty>=0.0.13", # Type checker
"pre-commit>=4.5.1", # Git hooks manager
"docformatter>=1.7.5", # Docstring formatter
"detect-secrets>=1.5.0", # Secret detection
]
test = [
"pytest>=9.0.2", # Testing framework
"pytest-cov>=7.0.0", # Coverage plugin
"pytest-mock>=3.14.0", # Mocking fixture
"pytest-order>=1.3.0", # Test ordering
"pytest-timeout>=2.3.1", # Timeout plugin
"docker>=7.1.0", # Docker SDK
"httpx>=0.28.1", # HTTP client
"testcontainers>=4.14.0", # Docker containers for e2e
]
[tool.ruff]
line-length = 100
target-version = "py313"
exclude = [".git", "__pycache__"]
[tool.ruff.lint]
select = ["ALL"]
extend-ignore = [
"D105", # missing docstring in magic method (redundant)
"D107", # missing docstring in __init__ (redundant)
"FA102", # Missing `from __future__ import annotations` (not needed for Python 3.11+)
"COM812", # trailing-comma-missing (ruff format handles differently)
]
[tool.ruff.lint.per-file-ignores]
"{**/app.py,**/dependencies.py}" = ["B008"] # FastAPI Depends() in function arguments
"{tests/**,**/conftest.py}" = [
"S", # security rules (annoying in tests)
"ANN", # type annotations (not useful in tests)
"D", # docstrings (self-descriptive test names)
"SLF001", # private member access (testing internals)
"PLR0913", # too many arguments (pytest fixtures)
"INP001", # implicit namespace package
]
"**/conftest.py" = ["F401", "F405"] # unused/star imports OK
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.flake8-tidy-imports.banned-api]
"unittest.mock".msg = "Use pytest-mock's 'mocker' fixture instead"
[tool.ty.environment]
python-version = "3.13"