-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
93 lines (82 loc) · 1.83 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
[tool.poetry]
name = "aidial-adapter-dial"
version = "0.4.0rc"
description = "DIAL application which adapts one DIAL Core to another DIAL Core"
authors = ["EPAM RAIL <SpecialEPM-DIALDevTeam@epam.com>"]
homepage = "https://epam-rail.com"
documentation = "https://epam-rail.com/dial_api"
license = "Apache-2.0"
readme = "README.md"
keywords = ["ai"]
classifiers = [
"Topic :: Software Development :: Libraries :: Python Modules"
]
repository = "https://github.com/epam/ai-dial-adapter-dial"
[tool.poetry.scripts]
clean = "scripts.clean:main"
[pytest]
env_files = [".env"]
[tool.poetry.dependencies]
python = ">=3.11,<3.13"
fastapi = "0.115.2"
uvicorn = "0.23"
aiohttp = "3.10.11"
openai = "1.32.0"
pydantic = "^1.10.12"
aidial-sdk = {version = "^0.16.0", extras = ["telemetry"]}
respx = "^0.21.1"
[tool.poetry.group.test.dependencies]
pytest = "7.4.0"
pytest-asyncio = "0.21.1"
python-dotenv = "1.0.0"
[tool.poetry.group.lint.dependencies]
pyright = "1.1.324"
black = "24.3.0"
isort = "5.12.0"
autoflake = "2.2.0"
flake8 = "6.0.0"
[tool.poetry.group.dev.dependencies]
nox = "^2023.4.22"
[tool.pytest.ini_options]
testpaths = [
"tests"
]
# muting warnings coming from opentelemetry package
filterwarnings = [
"ignore::DeprecationWarning:opentelemetry.instrumentation.dependencies"
]
[tool.pyright]
typeCheckingMode = "basic"
reportUnusedVariable = "error"
reportIncompatibleMethodOverride = "error"
exclude = [
".git",
".venv",
".nox",
"**/__pycache__",
"docker-compose"
]
[tool.black]
line-length = 80
exclude = '''
/(
\.git
| \.venv
| \.nox
| \.__pycache__
| docker-compose\/local\/core-data
)/
'''
[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 = [
"\\.venv",
"\\.nox",
]