-
-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy pathpyproject.toml
More file actions
120 lines (113 loc) · 2.78 KB
/
Copy pathpyproject.toml
File metadata and controls
120 lines (113 loc) · 2.78 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
115
116
117
118
119
120
[dependency-groups]
dev = [
"types-pytz==2024.1.0.20240417",
"types-pyyaml==6.0.12.20240808",
"ruff<0.16",
"factory_boy-peewee==0.0.4", # This package is archived and not maintained anymore but works and is very lightweight.
"mypy==1.10.1",
"pytest>=7.2,<9.1",
"pytest-mock~=3.10.0",
"pre-commit~=4.2.0",
"toml-sort~=0.20.1",
"pytest-cov~=4.0.0",
"mkdocs-material~=7.2.3",
"mdx-truly-sane-lists~=1.2",
"markdown~=3.3", # mdx-truly-sane-lists requires markdown < 3.4
"mkdocs-awesome-pages-plugin~=2.8.0",
"coverage[toml]~=6.3",
"types-requests~=2.28.11.5",
"types-six==1.16.10",
"types-protobuf==3.17.3",
"types-certifi==2021.10.8",
"types-setuptools==65.6.0.0",
"types-toml==0.10.3",
"pytest-httpserver==1.1.4",
"types-cachetools==5.2.1",
"types-redis==4.3.21",
"rq-dashboard~=0.6.1",
"requests-mock==1.12.1"
]
[project]
name = "robotoff"
version = "1.85.10"
description = "Real-time and batch prediction service for Open Food Facts."
readme = "README.md"
requires-python = ">=3.11,<3.13"
authors = [{ name = "Open Food Facts Team" }]
license = "AGPL-3.0-only"
dependencies = [
"requests>=2.31,<2.34",
"peewee~=3.17.6",
"psycopg2-binary~=2.9.1",
"gunicorn>=20.1,<23.1",
"falcon~=3.1.3",
"elasticsearch~=8.18.1",
"pymongo>=4.5,<4.7",
"dacite~=1.6.0",
"influxdb-client~=1.34.0",
"jsonschema~=4.4.0",
"orjson>=3.8.2,<3.12.0",
"Pillow>=9.3,<10.4",
"numpy~=2.2.6",
"protobuf~=5.29.6",
"Pint==0.25",
"APScheduler~=3.10.1",
"more-itertools~=8.9.0",
"matplotlib~=3.9.1",
"typer~=0.16.0",
"py-healthcheck==1.10.1",
"cachetools~=5.5.0",
"tritonclient[grpc]==2.65.0",
"rq~=1.11.1",
"python-redis-lock~=4.0.0",
"transformers>=5.7.0,<5.8.0",
"lark~=1.1.4",
"h5py~=3.13.0",
"opencv-python-headless~=4.12.0.88",
"toml~=0.10.2",
"openfoodfacts==3.4.5",
"pydantic==2.11.9",
"imagehash~=4.3.1",
"peewee-migrate~=1.12.2",
"diskcache~=5.6.3",
"google-cloud-batch~=0.17.26",
"duckdb>=1.0,<1.2",
"google-cloud-storage~=2.14.0",
"pandas~=2.2.2",
"pyarrow~=17.0.0",
"rich~=13.9.2", # Used for CLI pretty print
"backoff==2.2.1",
"albumentations==2.0.8",
"sentry-sdk[falcon]>=2.44.0,<3.0"
]
[tool.coverage.run]
data_file = ".cov/.coverage"
source = ["robotoff"]
[tool.coverage.xml]
output = ".cov/coverage.xml"
[tool.mypy]
ignore_missing_imports = true
[tool.ruff]
target-version = "py311"
line-length = 88
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"UP", # pyupgrade
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I" # isort
]
ignore = [
"E501", # line too long (handled by ruff)
"B008", # Do not perform function call `typer.Argument` in argument defaults
]
exclude = [
".git",
".mypy_cache",
".venv"
]