-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
67 lines (59 loc) · 1.59 KB
/
Copy pathpyproject.toml
File metadata and controls
67 lines (59 loc) · 1.59 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
[build-system]
requires = ["hatchling>=1.31.0"]
build-backend = "hatchling.build"
[project]
name = "medtrack-ai"
version = "0.1.0"
description = "Serviço de inferência e ferramentas de treinamento do MedTrack."
readme = "README.md"
requires-python = ">=3.11,<3.12"
license = { text = "MIT" }
authors = [{ name = "MedTrack" }]
dependencies = [
"fastapi==0.141.1",
"numpy==2.4.6",
"opencv-python-headless>=5.0.0.93,<6",
"pydantic-settings>=2.15.0,<3",
"python-multipart==0.0.32",
"uvicorn==0.52.1",
]
[dependency-groups]
inference = [
"easyocr==1.7.2",
"ultralytics==8.4.115",
]
training = [
"ultralytics==8.4.115",
]
dev = [
"httpx>=0.28.1,<0.29",
"pre-commit>=3.7,<5",
"pytest>=9.1.1,<10",
"pytest-cov>=7.1.0,<8",
"pyright>=1.1.360,<2",
"ruff>=0.16.1,<1",
]
[tool.hatch.build.targets.wheel]
packages = ["src/medtrack_ai"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra -m 'not model' --cov=medtrack_ai --cov-report=term-missing"
markers = [
"unit: teste rápido e isolado, sem rede, modelo ou sistema de arquivos externo.",
"integration: teste da integração HTTP interna com adaptadores falsos.",
"model: smoke test opcional que usa artefato de modelo local já verificado.",
]
[tool.ruff]
target-version = "py311"
line-length = 100
src = ["src", "tests"]
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B"]
[tool.ruff.lint.per-file-ignores]
# FastAPI declara campos multipart no padrão File(...).
"src/api/api.py" = ["B008"]
"src/medtrack_ai/api/main.py" = ["B008"]
[tool.pyright]
include = ["src", "tests"]
pythonVersion = "3.11"
typeCheckingMode = "basic"