-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
93 lines (80 loc) · 2.09 KB
/
Copy pathpyproject.toml
File metadata and controls
93 lines (80 loc) · 2.09 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
[project]
name = "aidial-client"
version = "0.0.0"
description = "A Python client library for the AI DIAL API"
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.10,<3.14"
authors = [{ name = "DIALX", email = "SpecialEPM-DIALDevTeam@epam.com" }]
dependencies = [
"openai>=1.1.0,<3",
"httpx>=0.25.0,<1",
"pydantic>=1.10,<3",
"aiofiles>=0.5.0",
]
[project.urls]
Homepage = "https://dialx.ai"
Repository = "https://github.com/epam/ai-dial-client-python"
[tool.poetry]
packages = [{ include = "aidial_client" }]
[build-system]
requires = ["poetry-core>=2.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.group.test.dependencies]
pytest = "^9.0.3"
pytest-asyncio = "^0.21.0"
pytest-cov = "^5.0"
nox = "^2024.4.15"
coverage = "^7.6"
[tool.poetry.group.lint.dependencies]
pyright = "1.1.385"
ruff = "0.12.11"
[tool.poetry.group.dev.dependencies]
pre-commit = "^4.5.1"
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.pyright]
typeCheckingMode = "basic"
reportUnusedVariable = "error"
reportIncompatibleMethodOverride = "error"
exclude = ["**/node_modules", "**/__pycache__", "**/.*", ".venv"]
[tool.ruff]
line-length = 80
target-version = "py310"
[tool.ruff.lint]
select = [
"ERA", # flake8-eradicate
"B", # flake8-builtins
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"B9", # flake8-bugbear
"E", # pycodestyle
"W", # pycodestyle
"F", # pyflakes
"I", # flake8-isort
"S", # flake8-bandit
"FURB", # refurb
"UP", # pyupgrade
]
ignore = [
"S101", # Use of `assert` detected
"B904", # Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None`
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"E501", # String literal is too long
"B011", # Do not `assert False`
"B006", # Do not use mutable data structures for argument defaults
]
"*/__init__.py" = [
"F401", # imported but unused
]
[tool.coverage.run]
source = ["."]
omit = [
"tests/*",
"*/__init__.py",
"noxfile.py",
'aidial_client/_compatibility/pydantic_v1.py',
'htmlcov/*',
]