-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpyproject.toml
108 lines (90 loc) · 1.73 KB
/
pyproject.toml
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
#
# Ruff
#
[tool.ruff]
exclude = [
".eggs",
".git",
".mypy_cache",
".pytest_cache",
".ruff_cache",
"__pycache__",
".tox",
".venv",
"__pypackages__",
"build",
"dist",
"node_modules",
".venv",
]
extend-select = ["I"]
line-length = 100
indent-width = 4
fix = true
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
#
# Poetry
#
[tool.poetry]
name = "ova-server"
version = "0.1.0"
description = "Open Vision API Server"
authors = ["pythops <contact@pythops.com>"]
license = "AGPLv3"
readme = "Readme.md"
[tool.poetry.dependencies]
python = ">=3.9,<3.11"
fastapi = "^0.103.2"
uvicorn = "^0.23.2"
httpx = "^0.25.0"
pillow = "^10.1.0"
python-multipart = "^0.0.6"
slowapi = "^0.1.8"
[tool.poetry.group.tensorflow.dependencies]
tensorflow = "^2.11.0"
keras = "2.11"
[tool.poetry.group.tensorflow_lite.dependencies]
tflite-runtime = "^2.14.0"
[tool.poetry.group.pytorch.dependencies]
[tool.poetry.group.dev.dependencies]
pdbpp = "*"
[tool.poetry.group.test.dependencies]
ruff = "*"
pytest = "*"
pytest-asyncio = "*"
pytest-icdiff = "*"
pytest-coverage = "*"
mypy = "*"
bandit = "*"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
#
# Pytest
#
[tool.pytest.ini_options]
testpaths = "tests"
python_files = "test_*.py"
python_functions = "test_*"
python_classes = "Test* *Tests"
addopts = "-vv -x"
asyncio_mode = "auto"
#
# Mypy
#
[tool.mypy]
check_untyped_defs = true
namespace_packages = true
pretty = true
show_error_context = true
allow_redefinition = true
[[tool.mypy.overrides]]
module = "tests.*"
ignore_errors = true
[[tool.mypy.overrides]]
module = ["tensorflow.*", "tflite_runtime.*", "PIL.*"]
ignore_missing_imports = true