-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
99 lines (82 loc) · 1.91 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
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "aidial-analytics-realtime"
version = "0.8.0rc"
description = "Realtime analytics server for AI DIAL"
authors = ["EPAM RAIL <SpecialEPM-DIALDevTeam@epam.com>"]
homepage = "https://epam-rail.com"
license = "Apache-2.0"
readme = "README.md"
repository = "https://github.com/epam/ai-dial-analytics-realtime"
[tool.poetry.dependencies]
python = "~3.10"
aiohttp = "3.9.2"
fastapi = "0.109.2"
uvicorn = "0.22.0"
influxdb-client = "1.37.0"
langid = "1.1.6"
torch = [
{ version = "^2.0.1", markers = "sys_platform == 'darwin'" },
{ version = "^2.0.1+cpu", source = "pytorch", markers = "sys_platform != 'darwin'" },
]
bertopic = "^0.15.0"
llvmlite = "^0.40.1"
python-dotenv = "^1.0.0"
python-dateutil = "^2.8.2"
transformers = "4.36.0"
pydantic = "^1.10.14"
[[tool.poetry.source]]
name = "pytorch"
url = "https://download.pytorch.org/whl/cpu"
priority = "explicit"
[tool.poetry.group.test.dependencies]
pytest = "^7.4.1"
httpx = "^0.24.1"
[tool.poetry.group.dev.dependencies]
black = "^23.7.0"
isort = "^5.12.0"
flake8 = "^6.1.0"
autoflake = "^2.2.1"
pyright = "^1.1.325"
nox = "^2023.4.22"
[tool.poetry.group.nox.dependencies]
nox = "^2023.4.22"
[tool.pyright]
typeCheckingMode = "basic"
reportUnusedVariable = "error"
reportIncompatibleMethodOverride = "error"
exclude = [
".git",
".nox",
".venv",
"**/__pycache__"
]
[tool.black]
line-length = 80
exclude = '''
/(
\.git
| \.nox
| \.venv
| \.__pycache__
)/
'''
[tool.isort]
line_length = 80
profile = "black"
[tool.autoflake]
ignore_init_module_imports = true
remove_all_unused_imports = true
in_place = true
recursive = true
quiet = true
exclude = [
"\\.nox",
"\\.venv"
]
[tool.pytest.ini_options]
markers = [
"with_external: marks tests may require external resources, like the download models (deselect with '-m \"not with_external\"')",
]